private void DisableDynamicPressureSensing(object parameter) { PerformPressureMapping(null, 2); EnableUiParameters.IsRealTimeSensingEnabled = false; DynamicTestingTimer.Enabled = false; TurnOnDynamicPressureSensing.RaiseCanExecuteChanged(); TurnOffDynamicPressureSensing.RaiseCanExecuteChanged(); }
private void EnableDynamicPressureSensing(object parameter) { int pressureSensingTimeInterval = 20; EnableUiParameters.IsRealTimeSensingEnabled = true; PerformPressureMapping(null, 2); DynamicTestingTimer = new System.Timers.Timer((pressureSensingTimeInterval) * 1000); DynamicTestingTimer.Elapsed += new ElapsedEventHandler(OnTimedEvent); DynamicTestingTimer.AutoReset = true; DynamicTestingTimer.Enabled = true; TurnOnDynamicPressureSensing.RaiseCanExecuteChanged(); TurnOffDynamicPressureSensing.RaiseCanExecuteChanged(); }