Beispiel #1
0
 private void StopTimer()
 {
     StartStopButton.Text        = "Start";
     Hours.Enabled               = true;
     Minutes.Enabled             = true;
     Seconds.Enabled             = true;
     ClearButton.Enabled         = true;
     ActionSelection.Enabled     = true;
     ForceQuitCheckBox.Enabled   = true;
     GlobalVariables.timerActive = false;
     SecondDecrement.Stop();
 }
Beispiel #2
0
        private void StartTimer()
        {
            if (CommitCheckBox.Checked)
            {
                StartStopButton.Enabled = false;
            }
            StartStopButton.Text      = "Stop";
            Hours.Enabled             = false;
            Minutes.Enabled           = false;
            Seconds.Enabled           = false;
            ClearButton.Enabled       = false;
            ActionSelector.Enabled    = false;
            CommitCheckBox.Enabled    = false;
            ForceQuitCheckBox.Enabled = false;

            GlobalVariables.timerActive = true;
            SecondDecrement.Start();
        }