private void OpenWindow(object sender, RoutedEventArgs e) { HangmanWindow objSecondWindow = new HangmanWindow(); this.Visibility = Visibility.Hidden; objSecondWindow.Show(); }
private void OpenWindow(object sender, RoutedEventArgs e) { HangmanWindow objSecondWindow = new HangmanWindow(); objSecondWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen; Close(); objSecondWindow.Show(); }
private void NewWindow() { HangmanWindow objSecondWindow = new HangmanWindow(); objSecondWindow.WindowStartupLocation = WindowStartupLocation.CenterScreen; Close(); objSecondWindow.Show(); }