Exemplo n.º 1
0
        public WinGui()
        {
            InitializeComponent();

            MessageBox.MainForm   = this;
            GuiEventLoop.MainForm = this;

            GuiEventLoop.ResetHistory(new ChessState());

            GuiEventLoop.PollGuiOnce();

            chessBoardControl.PieceMovedByHuman += PieceMovedByHuman_Changed;
            chessBoardControl.SetChessFlagCombo(this.cmbChessFlags);
        }
Exemplo n.º 2
0
 private void clearHistoryToolStripMenuItem_Click(object sender, EventArgs e)
 {
     GuiEventLoop.ResetHistory(new ChessState());
 }