예제 #1
0
        private void newGameToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form giaodien = new GiaoDien();

            this.Hide();
            giaodien.ShowDialog();
            Application.Exit();
        }
예제 #2
0
        private void bt_playlai_Click(object sender, EventArgs e)
        {
            Form giaodien = new GiaoDien();

            this.Hide();
            giaodien.ShowDialog();
            Application.Exit();
        }
예제 #3
0
 private void ChessPanel_Load(object sender, EventArgs e)
 {
     if (ChessBoard.CurrentPlayer == "W")
     {
         UndoButton1.Enabled = false;
         UndoButton.Enabled  = true;
     }
     else
     {
         UndoButton1.Enabled = true;
         UndoButton.Enabled  = false;
     }
     if (PanelChessBoard.Enabled == false)
     {
         Form giaodien = new GiaoDien();
         this.Hide();
         giaodien.ShowDialog();
         Application.Exit();
     }
 }