Esempio n. 1
0
 public FrmSuctionSensor(FormMain main)
 {
     _Main = main;
     InitializeComponent();
     _ss = SuctionSensor.GetInstance(_Main);
     _ss.OnCommsDropout     += Ss_OnCommsDropout;
     _ss.OnConnectionChange += Ss_OnConnectionChange;
     _ss.OnPressureChange   += Ss_OnPressureChange;
     buttonSave.Enabled      = false;
 }
Esempio n. 2
0
 public static SuctionSensor GetInstance(FormMain main)
 {
     return(Instance ?? (Instance = new SuctionSensor(main)));
 }
Esempio n. 3
0
 SuctionSensor(FormMain main)
 {
     Instance = this;
     _Main    = main;
 }