Example #1
0
        /// <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();
            }
        }
Example #2
0
 /// <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();
 }