예제 #1
0
 private void DisableDynamicPressureSensing(object parameter)
 {
     PerformPressureMapping(null, 2);
     EnableUiParameters.IsRealTimeSensingEnabled = false;
     DynamicTestingTimer.Enabled = false;
     TurnOnDynamicPressureSensing.RaiseCanExecuteChanged();
     TurnOffDynamicPressureSensing.RaiseCanExecuteChanged();
 }
예제 #2
0
        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();
        }