Beispiel #1
0
 /// <summary>
 /// 转到<see cref="MainWindow"/>并开始放映.
 /// </summary>
 public static void GotoMainWindow()
 {
     if (Window.Visibility != Visibility.Visible)
     {
         DisplayWindow.Close();
         Window.Show();
     }
 }
Beispiel #2
0
 /// <summary>
 /// 转到<see cref="PPtDisplay.DisplayWindow"/>并开始放映.
 /// </summary>
 public static void GotoDisplayWindow()
 {
     App.Window.Dispatcher.Invoke(() =>
     {
         if (Window.Visibility == Visibility.Visible)
         {
             Window.Hide();
             if (DisplayWindow != null)
             {
                 DisplayWindow.Close();
             }
             DisplayWindow = new DisplayWindow();
             DisplayWindow.Show();
         }
     });
 }