private void StopEngine()
 {
     if (engineClient != null)
     {
         engineClient.Stop();
         engineClient = null;
     }
 }
예제 #2
0
        public void Stop()
        {
            StopFaintAlarm();

            if (engineClient != null)
            {
                engineClient.NewAlarmsFired -= EngineClient_NewAlarmsFired;//不取消的话,事件会重复绑定
                engineClient.Stop();
                engineClient = null;
            }
        }
예제 #3
0
 private void StopConnectEngine()
 {
     if (engineClient != null)
     {
         engineClient.Stop();
         engineClient = null;
     }
     if (_stopwatchTextBox != null)
     {
         _stopwatchTextBox.Stop();
         _stopwatchTextBox = null;
     }
 }