Exemplo n.º 1
0
 private void StopAction()
 {
     if (_currentAction == null)
     {
         return;
     }
     timer.Stop();
     if (_currentAction.Type == MouseAction.ActionType.Constant)
     {
         _currentAction.Leave();
     }
     uiTimer.Stop();
     _currentAction    = null;
     run               = -1;
     lblActive.Content = "Inactive";
     FormatActiveLabel(0);
     cbMode.IsEnabled = true;
 }