Initialization( ) changed, is abstract in ComponentBase, builds OK.
This commit is contained in:
@@ -73,53 +73,32 @@ namespace TBF.Rig.WaterMeters.WaterMeter
|
||||
#endif
|
||||
|
||||
/// Properties set by the Begin and the End form or the iPerl head
|
||||
public string SerialNr
|
||||
{
|
||||
get { return serialNr; }
|
||||
set { serialNr = value; }
|
||||
}
|
||||
string serialNr;
|
||||
public string SerialNr { get; set; }
|
||||
public string EndState { get; set; }
|
||||
public string BeginState { get; set; }
|
||||
public bool Disabled { get; set; }
|
||||
|
||||
public string EndState
|
||||
{
|
||||
get { return endState; }
|
||||
set { endState = value; }
|
||||
}
|
||||
string endState;
|
||||
|
||||
public string BeginState
|
||||
{
|
||||
get { return beginState; }
|
||||
set { beginState = value; }
|
||||
}
|
||||
string beginState;
|
||||
|
||||
public bool Disabled
|
||||
{
|
||||
get { return disabled; }
|
||||
set { disabled = value; }
|
||||
}
|
||||
bool disabled;
|
||||
|
||||
public WaterMeter()
|
||||
{
|
||||
ClearData();
|
||||
}
|
||||
public WaterMeter() { }
|
||||
|
||||
public WaterMeter(Generic.IComponentCfg cfg)
|
||||
: base(cfg)
|
||||
{
|
||||
ClearData();
|
||||
waterMeterCfg = cfg as WaterMeterCfg;
|
||||
log.Warn(this.ToString());
|
||||
}
|
||||
|
||||
public override void Initialize()
|
||||
{
|
||||
ClearData();
|
||||
}
|
||||
|
||||
public void ClearData()
|
||||
{
|
||||
serialNr = string.Empty;
|
||||
endState = string.Empty;
|
||||
beginState = string.Empty;
|
||||
disabled = false;
|
||||
SerialNr = string.Empty;
|
||||
EndState = string.Empty;
|
||||
BeginState = string.Empty;
|
||||
Disabled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user