IComponentCfg and IComponentFactory interfaces and all derived classes modified.
This commit is contained in:
@@ -46,15 +46,15 @@ namespace TBF.BenchControl.Elde.PumpTandem
|
||||
{
|
||||
}
|
||||
|
||||
public Pump(PumpCfg cfg, IList<Generic.IComponent> components)
|
||||
public Pump(Generic.IComponentCfg cfg, IList<Generic.IComponent> components)
|
||||
: base(cfg)
|
||||
{
|
||||
pumpCfg = cfg;
|
||||
pumpCfg = cfg as PumpCfg;
|
||||
|
||||
pump1 = (GenericDevices.IPump)TbfComponents.FindComponent(cfg.Pump1, components);
|
||||
pump1 = (GenericDevices.IPump)TbfComponents.FindComponent(pumpCfg.Pump1, components);
|
||||
if (pump1 == null) throw new Exception("Cannot find component Pump 1");
|
||||
|
||||
pump2 = (GenericDevices.IPump)TbfComponents.FindComponent(cfg.Pump2, components);
|
||||
pump2 = (GenericDevices.IPump)TbfComponents.FindComponent(pumpCfg.Pump2, components);
|
||||
if (pump2 == null) throw new Exception("Cannot find component Pump 2");
|
||||
|
||||
pumpFm1 = pump1 as GenericDevices.IPumpFM;
|
||||
|
||||
Reference in New Issue
Block a user