Esempio n. 1
0
 private void PauseButton_Click(object sender, EventArgs e)
 {
     stopwatch.Pause();
     PauseButton.Enabled    = false;
     StartButton.Enabled    = true;
     StopWorkButton.Enabled = true;
 }
Esempio n. 2
0
 public void StopwatchStart()
 {
     if (Stopwatch != null)
     {
         if (Stopwatch.Paused)
         {
             Stopwatch.Resume();
             return;
         }
         if (!Stopwatch.Running)
         {
             Stopwatch.Start();
         }
         else
         {
             Stopwatch.Pause();
         }
     }
 }