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
+7 -6
View File
@@ -29,9 +29,7 @@ namespace TBF.Rig.Keithley.TempMeter
Dictionary<DoubleBox, IOperation> operations2;
public TempMeter()
{
}
public TempMeter() { }
public TempMeter(Generic.IComponentCfg cfg, IList<Generic.IComponent> components)
: base(cfg)
@@ -41,12 +39,15 @@ namespace TBF.Rig.Keithley.TempMeter
Multimeter = (Multimeter)TbfComponents.FindComponent(cfg.ParentName, components);
if (Multimeter == null) throw new Exception("Cannot find " + Name + " parent");
operations = new Dictionary<DoubleBox, IOperation>();
operations2 = new Dictionary<DoubleBox, IOperation>();
log.Warn(this.ToString());
}
public override void Initialize()
{
operations = new Dictionary<DoubleBox, IOperation>();
operations2 = new Dictionary<DoubleBox, IOperation>();
}
///
/// Calendar support
///