private static void Init_2(IEditorPlugIn plugIn) { if (plugIn.DriverID == ModuleNo.DualPump) { foreach (IDevice device in PumpHelper.GetPumpDevicesFromPumpModule(plugIn)) { InitializePump(plugIn, device); } } else { InitializePump(plugIn, plugIn.Symbol as IDevice); } AddChannels(plugIn); }
private static void AddChannels(IEditorPlugIn plugIn) { if (plugIn.DriverID == ModuleNo.DualPump) { bool isChannelFound = false; foreach (IDevice device in PumpHelper.GetPumpDevicesFromPumpModule(plugIn)) { AddChannels(plugIn, device); isChannelFound = true; } if (!isChannelFound) // when the dual pump is configured as a shared device { AddChannels(plugIn, plugIn.Symbol); } } else { AddChannels(plugIn, plugIn.Symbol); } }
private static void Init_1(IEditorPlugIn plugIn) { PumpHelper.AddPumpPages(plugIn); AddChannels(plugIn); }