private void UpdateTimer() { TimerTextBlock.Text = String.Format("{0}:{1:00},{2:00}", timeLeft.Minutes, timeLeft.Seconds, timeLeft.Milliseconds / 10); if (showWindow != null) { showWindow.UpdateTimer(); } }
private void SecondWindow() { if (showWindow != null) { showWindow.Close(); } showWindow = new ShowWindow { Owner = this }; showWindow.Show(); showWindow.UpdateColor(); showWindow.UpdateScore(); showWindow.UpdateTimer(); }
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(); } }