Ejemplo n.º 1
0
        private void buttonExit_Click(object sender, EventArgs e)
        {
            VerifyForm quitForm = new VerifyForm(ConstantsUI.k_QuitMessage, ConstantsUI.k_QuitMessageTitle);

            quitForm.ShowDialog();
            if (quitForm.DialogResult == DialogResult.Yes)
            {
                this.Close();
            }
        }
Ejemplo n.º 2
0
        private void buttonStartOver_Click(object sender, EventArgs e)
        {
            string     resultMessage;
            VerifyForm startOver = new VerifyForm(ConstantsUI.k_StartOverMessage, ConstantsUI.k_StartOverMessageTtle);

            startOver.ShowDialog();
            if (startOver.DialogResult == DialogResult.Yes)
            {
                GetNameLogin.Player1TotalScoreCounter += m_Game.Player1Score();
                GetNameLogin.Player2TotalScoreCounter += m_Game.Player2Score();
                resultMessage = getCurrentWinnerCaseQuiter() + ConstantsUI.k_WinnerMessage;
                MessageBox.Show(resultMessage, ConstantsUI.k_DamkaTitle, MessageBoxButtons.YesNo, MessageBoxIcon.Question);
                StartOverGame = true;
                this.Close();
            }
        }