Exemplo n.º 1
0
        private void StartAction()
        {
            cbMode.IsEnabled = false;
            _currentAction   = getSelectedAction();

            if (_currentAction.Type == MouseAction.ActionType.Constant)
            {
                _currentAction.Enter();
            }
            else
            {
                timer.Interval = GetSpeed().Item2;
                timer.Start();
            }
            uiTimer.Start();
            run = 0;
            lblActive.Content = "ACTIVE";
            FormatActiveLabel(2);
        }