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