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