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