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