public static void Display()
 {
     if (This.Visibility == Visibility.Visible)
     {
         This.Close();
         return;
     }
     This.Show();
     This.Activate();
     This.WindowState = WindowState.Normal;
 }
Beispiel #2
0
 private void Exit_Executed(object sender, ExecutedRoutedEventArgs e)
 {
     This.Close();
     // App.Current.Shutdown();
 }
 private void ButtonBase_OnClick(object sender, RoutedEventArgs e)
 {
     This.Close();
 }