Пример #1
0
 private void TimeIsUp()
 {
     ExamTimer.Stop();
     MessageBox.Show("Time's up!", "Time has elapsed", MessageBoxButtons.OK);
     CallResultsForm();
 }
Пример #2
0
 private void InitiateTimer()
 {
     ExamTimer.Interval = 2000;
     ExamTimer.Tick    += new EventHandler(ExamTimer_Tick);
     ExamTimer.Start();
 }