コード例 #1
0
        private void newGame()
        {
            int border = SystemInformation.BorderSize.Height;

            chessboard           = new Chessboard();
            this.ClientSize      = new Size(chessboard.Size() - border, chessboard.Size() + 30 + 17 - border); // Size of form dependent on size of chessboard, for height + 30 for padding from menu in chessboard.Draw() and + 17 for extra padding to stabilize
            timerPlayer1.Enabled = true;
        }