private void StopAllQualityTimers() { foreach (Timer CurrentTimer in QualityTimers) { CurrentTimer.Stop(); } }
/// <summary> /// Notifies the listener at the end of a fixture. /// </summary> public void EndFixture(IFixture fixture) { Pop(); CurrentTimer.Stop(); CurrentWriter.WriteAttributeString("time", CurrentTimer.Elapsed.TotalSeconds.ToString("0.000")); CurrentWriter.WriteAttributeString("success", _fixturePassed.ToString()); Pop(); }
/// <summary> /// Notifies the listener at the end of a test suite. /// </summary> public void EndTestSuite(ITestSuite testSuite) { Pop(); CurrentTimer.Stop(); CurrentWriter.WriteAttributeString("time", CurrentTimer.Elapsed.TotalSeconds.ToString("0.000")); CurrentWriter.WriteAttributeString("success", (FailCount == 0).ToString()); Pop(); }
private void PauseButton_Click(object sender, EventArgs e) { CurrentTimer.Stop(); _document.gHook.unhook(); SetAvailability(false, true, false, true, false); }
private void StopButton_Click(object sender, EventArgs e) { CurrentTimer.Stop(); _document.gHook.unhook(); SetAvailability(true, true, false, false, true); CreateReportButton.Enabled = true; }
private void MinimizeToTrayButton_Click(object sender, EventArgs e) { CurrentTimer.Stop(); MinimizeButtonFlag = true; // button was just clicked this.WindowState = FormWindowState.Minimized; }