tbf/TestBenchFramework/BenchControl/Generic/IComponentCfgCtrl.cs
2015-04-15 20:32:56 +02:00

42 lines
1023 B
C#

///
/// Copyright (c) 2013-2015 Sensus Metering Systems
///
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();
}
}