private void Exit(object sender, RoutedEventArgs e) { Manager.Email = ""; FirstWindow window = new FirstWindow(); window.Show(); this.Close(); }
private void Exit(object sender, RoutedEventArgs e) { Manager.Email = ""; FirstWindow window = new FirstWindow(); window.Show(); this.Close(); foreach (Window window1 in Application.Current.Windows) { if (window1 is not FirstWindow) { window1.Close(); } } }