Esempio n. 1
0
 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);
 }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
 private static void Init_1(IEditorPlugIn plugIn)
 {
     PumpHelper.AddPumpPages(plugIn);
     AddChannels(plugIn);
 }