Beispiel #1
0
 void NewGame()
 {
     prcbCoolDown.Value = 0;
     tmCoolDown.Stop();
     undoToolStripMenuItem.Enabled = true;
     ChessBoard.DrawChessBoard();
 }
Beispiel #2
0
        public Form1()
        {
            InitializeComponent();

            ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName, pctbMark);

            ChessBoard.DrawChessBoard();
        }
Beispiel #3
0
        public Form1()
        {
            InitializeComponent();
            ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName, pctbMark);

            prcbCountDown.Step    = Cons.CountDownStep;
            prcbCountDown.Maximum = Cons.CountDownTime;
            prcbCountDown.Value   = 0;
            tmCountDown.Interval  = Cons.CountDownInterval;

            ChessBoard.DrawChessBoard();
            tmCountDown.Start();
        }