private void ResultButton_Click(object sender, EventArgs e) { ResultSheet rSheet = new ResultSheet(); if (rSheet.ShowDialog() == System.Windows.Forms.DialogResult.Yes) { SetResultValues(); //Reload values if reset Result sheet } }
private void checkWin() { if (freeCellsCount == sideHeight * sideWidth - bombCount) { PlayTimeTimer.Enabled = false; showBombs(); MessageBox.Show("You win the game......................\n" + "...................................", "You Win.", MessageBoxButtons.OK); ResultSheet score = new ResultSheet(); score.setDetails(gameType, playTime); score.ShowDialog(); Close(); } }