// Close Window private void CloseWindow(object sender, EventArgs e) { if (Countdown.TimeTickSegment == SegmentNames.EndBreak) { Countdown.EndLapPackage(); Close(); } }
// yes and okay button private void YesOkayBtn(object sender, EventArgs e) { if (btnYesOkay.Text == "Yes") { Countdown.StartLap(); } else if (btnYesOkay.Text == "Okay") { Countdown.EndLapPackage(); } Close(); }