/// <summary> /// Event handler. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void MainWindow_OnGameOver(object sender, EventArgs e) { var rc = MessageBox.Show(ViewModelLocator.MainVM.LanguageContent["GameOverMsgStr"], "OpenMinesweeper", MessageBoxButton.YesNo); if (rc == MessageBoxResult.Yes) { newGameWindow = new NewGameWindow(); newGameWindow.ShowDialog(); } }
/// <summary> /// Event handler. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void NewGameVM_OnNewGame(object sender, EventArgs e) { newGameWindow.Close(); newGameWindow = null; }
/// <summary> /// Event handler. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void NewGameMenuItem_Click(object sender, RoutedEventArgs e) { newGameWindow = new NewGameWindow(); newGameWindow.ShowDialog(); }