Exemplo 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;
 }
Exemplo n.º 2
0
 public static SuctionSensor GetInstance(FormMain main)
 {
     return(Instance ?? (Instance = new SuctionSensor(main)));
 }
Exemplo n.º 3
0
 SuctionSensor(FormMain main)
 {
     Instance = this;
     _Main    = main;
 }