IComponentCfg and IComponentFactory interfaces and all derived classes modified.

This commit is contained in:
Milan Hanajik
2016-08-05 14:32:36 +02:00
parent 4d616939ad
commit 8dae45e10e
201 changed files with 491 additions and 354 deletions
@@ -206,10 +206,10 @@ namespace TBF.BenchControl.Elde
/// <summary>
/// Constructor
/// </summary>
public ControlBoardDev(ControlBoardCfg cfg)
public ControlBoardDev(Generic.IComponentCfg cfg)
: base(cfg)
{
controlBoardCfg = cfg;
controlBoardCfg = cfg as ControlBoardCfg;
#if DN100 || MUNICH || FUZHOU150
FMFreq = new float[2] { 0, 0 }; /// Nr. of pumps: Fuzhou150=2, Fuzhou300=6, newer=6
@@ -222,7 +222,7 @@ namespace TBF.BenchControl.Elde
routeMask = 0;
for (int i = 0; i < 64; i++)
{
if (i < cfg.VirtualValvesRangeLo || i > cfg.VirtualValvesRangeHi)
if (i < controlBoardCfg.VirtualValvesRangeLo || i > controlBoardCfg.VirtualValvesRangeHi)
{
routeMask = routeMask | ((ulong)1 << i);
}