Initialization( ) changed, is abstract in ComponentBase, builds OK.

This commit is contained in:
Milan Hanajik
2021-04-03 09:39:17 +02:00
parent a58fe1f997
commit c53cb8ace0
106 changed files with 441 additions and 312 deletions
@@ -62,9 +62,7 @@ namespace TBF.Rig.RegisterReaders.KPackE.DataEntryForRadio
CurrentOp currentOp;
public EntryForm()
{
}
public EntryForm() { }
public EntryForm(Generic.IComponentCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
@@ -73,18 +71,22 @@ namespace TBF.Rig.RegisterReaders.KPackE.DataEntryForRadio
radio = (KPackE.Radio.Radio)TbfComponents.FindComponent(entryFormCfg.Radio, components);
if (radio == null) throw new Exception("Cannot find Radio");
radio.EntryForm = this;
disabled = new bool[Config.Data.WMsCount];
wmStartState = new double[Config.Data.WMsCount];
wmStartStateStr = new string[Config.Data.WMsCount];
wmEndState = new double[Config.Data.WMsCount];
wmCycleEndState = new string[Config.Data.WMsCount];
currentOp = CurrentOp.None;
log.Warn(this.ToString());
}
public override void Initialize()
{
radio.EntryForm = this;
disabled = new bool[Config.Data.WMsCount];
wmStartState = new double[Config.Data.WMsCount];
wmStartStateStr = new string[Config.Data.WMsCount];
wmEndState = new double[Config.Data.WMsCount];
wmCycleEndState = new string[Config.Data.WMsCount];
currentOp = CurrentOp.None;
}
/// <returns>Reference to the operation</returns>
public IOperation ShowCycleBeginFormOp()
{