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