44 lines
1.0 KiB
C#
44 lines
1.0 KiB
C#
///
|
|
/// Copyright (c) 2013-2015 Sensus Metering Systems
|
|
///
|
|
using Config.Entities;
|
|
|
|
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();
|
|
}
|
|
}
|