protected void btnStart_Copy_Click(object sender, RoutedEventArgs e) { StopwatchForTask.Stop(); StopwatchForTask.Reset(); mainTimer.Stop(); lblOutputTime.Content = "00:00:00"; }
protected void btnStartAndPause_Click(object sender, RoutedEventArgs e) { if (!MainTimer.Enabled) { MainTimer.Elapsed += new System.Timers.ElapsedEventHandler(RunEvent); MainTimer.Enabled = true; StopwatchForTask.Start(); } else { StopwatchForTask.Stop(); MainTimer.Stop(); lblOutputTime.Content += " Paused"; } }