- 'More' button added to ComponentCfgCtrl-s - Dataflow from ComponentParametersDlg to components: CfgChangeHandler - Dataflow from components to ComponentParametersDlg: CmdResponseHandler - Detection of parameter changes and appropriate MesssageBox display: 1.warning message when component configuration change requires program restart 2.confirmation message box when any configuration changes would be lost
40 lines
964 B
C#
40 lines
964 B
C#
|
|
namespace TBF.BenchControl.Generic
|
|
{
|
|
public interface IComponentCfgCtrl
|
|
{
|
|
/// <summary>
|
|
/// Reference to device configuration class instance
|
|
/// </summary>
|
|
IComponentCfg Config { get; set; }
|
|
|
|
/// <summary>
|
|
/// When true, More/Less button will be shown and processed
|
|
/// </summary>
|
|
bool ShowMore { get; }
|
|
|
|
/// <summary>
|
|
/// Unlock controls.
|
|
/// </summary>
|
|
void Unlock();
|
|
|
|
/// <summary>
|
|
/// Verify current user controls for validity.
|
|
/// Called when user wants to close/save the configuration.
|
|
/// </summary>
|
|
/// <returns>See VerifyFlags</returns>
|
|
CfgUpdateFlags VerifyCfg(ref string message);
|
|
|
|
/// <summary>
|
|
/// Save form parameters to the configuration class.
|
|
/// </summary>
|
|
CfgUpdateFlags UpdateCfg();
|
|
|
|
/// <summary>
|
|
/// Called when the dialog with component configuration control is closing.
|
|
/// In this function CmdResponse handelrs (if any) should be closed, etc.
|
|
/// </summary>
|
|
void Closing();
|
|
}
|
|
}
|