Ejemplo n.º 1
0
        private void Timer_Tick(object sender, EventArgs e)
        {
            TimeSpan TS = Time - stopwatch.Elapsed;

            TimeLabel.Text = String.Format("{0:00}:{1:00}:{2:00}", TS.Hours, TS.Minutes, TS.Seconds);
            if (TS.Hours == 0 && TS.Minutes == 0 && TS.Seconds == 0)
            {
                stopwatch.Stop();
                Timer.Stop();
                K = XmlTest.Questions.Count - 1;
                PushButton.PerformClick();
            }
        }