2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
namespace TBF.BenchControl.Generic
|
|
|
|
|
|
{
|
|
|
|
|
|
public interface IComponentCfgCtrl
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Reference to device configuration class instance
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
IComponentCfg Config { get; set; }
|
|
|
|
|
|
|
2015-01-02 22:42:01 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// When true, More/Less button will be shown and processed
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
bool ShowMore { get; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Unlock controls.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
void Unlock();
|
|
|
|
|
|
|
2014-07-28 07:54:35 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Verify current user controls for validity.
|
|
|
|
|
|
/// Called when user wants to close/save the configuration.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <returns>See VerifyFlags</returns>
|
2015-01-02 22:42:01 +00:00
|
|
|
|
CfgUpdateFlags VerifyCfg(ref string message);
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2015-01-02 22:42:01 +00:00
|
|
|
|
/// Save form parameters to the configuration class.
|
2014-07-28 07:54:35 +00:00
|
|
|
|
/// </summary>
|
2015-01-02 22:42:01 +00:00
|
|
|
|
CfgUpdateFlags UpdateCfg();
|
2014-07-28 07:54:35 +00:00
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2015-01-02 22:42:01 +00:00
|
|
|
|
/// Called when the dialog with component configuration control is closing.
|
|
|
|
|
|
/// In this function CmdResponse handelrs (if any) should be closed, etc.
|
2014-07-28 07:54:35 +00:00
|
|
|
|
/// </summary>
|
2015-01-02 22:42:01 +00:00
|
|
|
|
void Closing();
|
2014-07-28 07:54:35 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|