Example #1
0
        private void btnChoose1_Click(object sender, EventArgs e)
        {
            if (Convert.ToDouble(lblPrice1.Text) == dp.GetRealPrice())
            {
                MessageBox.Show("You won!");
                if (GameSys.WhoseTurnPlayer == 1)
                {
                    GameSys.Player1Score++;
                }
                else if (GameSys.WhoseTurnPlayer == 2)
                {
                    GameSys.Player2Score++;
                }
                else
                {
                    GameSys.Player3Score++;
                }
                //=========================
                FrmPlayerScore s      = new FrmPlayerScore();
                FrmChooseGame  choose = new FrmChooseGame();

                this.Close();
                s.ShowDialog();
            }
            else
            {
                MessageBox.Show("You lose!");
                this.Close();
            }
        }
 private void btnShowScore_Click(object sender, EventArgs e)
 {
     myFormPlayerScore.ShowDialog();
 }