private void newGameToolStripMenuItem_Click(object sender, EventArgs e) { Form giaodien = new GiaoDien(); this.Hide(); giaodien.ShowDialog(); Application.Exit(); }
private void bt_playlai_Click(object sender, EventArgs e) { Form giaodien = new GiaoDien(); this.Hide(); giaodien.ShowDialog(); Application.Exit(); }
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(); } }