Example #1
0
        private void btnChoiGame_Click(object sender, EventArgs e)
        {
            DialogResult rs = MessageBox.Show("Ban co muon choi tiep van co vua roi khong?", "Choi tiep", MessageBoxButtons.YesNo);

            if (rs == DialogResult.No)
            {
                this.Hide();;
                string name = ShowDialog("Player Name", "Nhập tên người chơi!!");

                TicTacToe f1 = new TicTacToe(name);
                f1.Show();
            }
            else if (rs == DialogResult.Yes)
            {
            }
        }
Example #2
0
 static void Main(string[] args)
 {
     TicTacToe game = new TicTacToe();
 }