private void btnTimeView_Click(object sender, RoutedEventArgs e)
 {
     var timeViewWindow = new TimeViewWindow();
     timeViewWindow.Show();
 }
 void timer_Tick(object sender, EventArgs e)
 {
     if (timeWindow != null)
     {
         timeWindow.Close();
     }
     timeWindow = new TimeViewWindow();
     timeWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen;
     timeWindow.Show();
 }