Esempio n. 1
0
 private void UpdateTimer()
 {
     TimerTextBlock.Text = String.Format("{0}:{1:00},{2:00}",
                                         timeLeft.Minutes,
                                         timeLeft.Seconds,
                                         timeLeft.Milliseconds / 10);
     if (showWindow != null)
     {
         showWindow.UpdateTimer();
     }
 }
Esempio n. 2
0
 private void SecondWindow()
 {
     if (showWindow != null)
     {
         showWindow.Close();
     }
     showWindow = new ShowWindow
     {
         Owner = this
     };
     showWindow.Show();
     showWindow.UpdateColor();
     showWindow.UpdateScore();
     showWindow.UpdateTimer();
 }
Esempio n. 3
0
        private void UpdateTimer()
        {
            TimerTextBlock.Text = String.Format("{0}:{1:00},{2:00}",
                                                timeLeft.Minutes,
                                                timeLeft.Seconds,
                                                timeLeft.Milliseconds / 10);

            if (TimeLeft < new TimeSpan(0, 0, 10))
            {
                TimerTextBlock.Background = Brushes.OrangeRed;
            }
            if (showWindow != null)
            {
                showWindow.UpdateTimer();
            }
        }