public WinGui() { InitializeComponent(); MessageBox.MainForm = this; GuiEventLoop.MainForm = this; GuiEventLoop.ResetHistory(new ChessState()); GuiEventLoop.PollGuiOnce(); chessBoardControl.PieceMovedByHuman += PieceMovedByHuman_Changed; chessBoardControl.SetChessFlagCombo(this.cmbChessFlags); }
private void clearHistoryToolStripMenuItem_Click(object sender, EventArgs e) { GuiEventLoop.ResetHistory(new ChessState()); }