/// <summary> /// 类初始化时执行的公共代码 /// </summary> public void ClassInit(ref CControlCentral Controller) { control_central = Controller; control_central.ControllerCommStatusChanged += Control_central_ControllerCommStatusChanged; bgw_cure = new BackgroundWorker(); bgw_cure.WorkerSupportsCancellation = true; bgw_cure.WorkerReportsProgress = true; bgw_cure.DoWork += bgw_cure_DoWork; bgw_cure.ProgressChanged += bgw_cure_ProgressChanged; bgw_cure.RunWorkerCompleted += Bgw_cure_RunWorkerCompleted; //bgw_cure.RunWorkerAsync(); realtime_temperature_collection = new CRealtimeTemperatureCollection(); presetted_sequence = new CTemperatureSequence(); /* 初始化倒计时时基的定时器 */ timer_countdown_tick = new Timer(OnTimerIntervalEvent, null, Timeout.Infinite, COUNTDOWN_BASETIME_MS); sem_countdown_tick = new Semaphore(0, 1); /* 初始化Command */ command_start_resume = new RelayCommand <object>(p => StartOrResumeExecute(p)); this.patient_name = ""; }
/// <summary> /// 类初始化时执行的公共代码 /// </summary> public void ClassInit(ref CControlCentral Controller) { control_central = Controller; control_central.ControllerCommStatusChanged += Control_central_ControllerCommStatusChanged; bgw_cure = new BackgroundWorker(); bgw_cure.WorkerSupportsCancellation = true; bgw_cure.WorkerReportsProgress = true; bgw_cure.DoWork += bgw_cure_DoWork; bgw_cure.ProgressChanged += bgw_cure_ProgressChanged; bgw_cure.RunWorkerCompleted += Bgw_cure_RunWorkerCompleted; //bgw_cure.RunWorkerAsync(); realtime_temperature_collection = new CRealtimeTemperatureCollection(); presetted_sequence = new CTemperatureSequence(); /* 初始化倒计时时基的定时器 */ timer_countdown_tick = new Timer(OnTimerIntervalEvent, null, Timeout.Infinite, COUNTDOWN_BASETIME_MS); sem_countdown_tick = new Semaphore(0, 1); /* 初始化Command */ command_start_resume = new RelayCommand<object>(p => StartOrResumeExecute(p)); this.patient_name = ""; }
public ViewModeCureHistory() { _realtime_temper_collection = new CRealtimeTemperatureCollection(); _history_collection = new ObservableCollection <CCureHistory>(); }
public ViewModeCureHistory() { _realtime_temper_collection = new CRealtimeTemperatureCollection(); _history_collection = new ObservableCollection<CCureHistory>(); }