Exemplo n.º 1
0
        private void bRes_Click(object sender, EventArgs e)  //restart
        {
            DialogResult dlr = MessageBox.Show("Do you want to restart?", "Restart", MessageBoxButtons.YesNo);

            if (dlr == DialogResult.Yes)   //đồng ý thì reset lại màn chơi
            {
                this.Hide();
                Play2 play = new Play2(surNum, name, point);
                play.ShowDialog();
                this.Close();
            }
        }