private void Model_OnPlayerLost(object sender, MinesweeperEventArgs e)
 {
     RefreshTable();
     MessageBox.Show(e.Player + " won",
                     "Game Over",
                     MessageBoxButtons.OK,
                     MessageBoxIcon.Asterisk);
     OnNewGame(_model.Size);
 }
Example #2
0
 private void OnPlayerLost(object sender, MinesweeperEventArgs e)
 {
     UpdateTable();
     MessageBox.Show(e.Player + " won",
                     "Game Over",
                     MessageBoxButtons.OK,
                     MessageBoxIcon.Asterisk);
     _model.NewGame(_model.Size);
     GenerateTable();
 }