Exemplo n.º 1
0
        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
            }
        }
Exemplo n.º 2
0
        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();
            }
        }