Пример #1
0
        public Form1()
        {
            InitializeComponent();

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

            ChessBoard.DrawChessBoard();
        }
Пример #2
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();
        }
Пример #3
0
 public Form1()
 {
     InitializeComponent();
     ChessBoard               = new ChessBoardManager(pnlChessBoard, txbPlayerName, pctbMark);
     ChessBoard.EndedGame    += ChessBoard_EndedGame;
     ChessBoard.PlayerMarked += ChessBoard_PlayerMarked;
     prcbCoolDown.Step        = Cons.CoolDownStep;
     prcbCoolDown.Maximum     = Cons.CoolDownTime;
     prcbCoolDown.Value       = 0;
     tmCoolDown.Interval      = Cons.CoolDownInterval;
     tmCoolDown.Start();
     socket = new SocketManager();
     NewGame();
 }
Пример #4
0
        public Form1()
        {
            InitializeComponent();
            ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName, pctbMark);
            ChessBoard.EndedGameWinner += ChessBoard_EndedGameWinner;
            ChessBoard.PLayerMarked    += ChessBoard_PlayerMarked;

            prcbCoolDown.Step    = Cons.COOL_DOWN_STEP;
            prcbCoolDown.Maximum = Cons.COOL_DOWN_TIME;
            //prcbCoolDown.Value = 0;
            tmCoolDown.Interval = Cons.COOL_DOWN_INTERVAL;

            NewGame();
        }
Пример #5
0
        public Form1()
        {
            InitializeComponent();

            Control.CheckForIllegalCrossThreadCalls = false;

            ChessBoard               = new ChessBoardManager(pnlChessBoard, txbPlayerName, pctbMark);
            ChessBoard.EndedGame    += ChessBoard_EndedGame;
            ChessBoard.PlayerMarked += ChessBoard_PlayerMarked;

            prcbCoolDown.Step    = Cons.COOL_DOWN_STEP;
            prcbCoolDown.Maximum = Cons.COOL_DOWN_TIME;
            prcbCoolDown.Value   = 0;

            tmCoolDown.Interval = Cons.COOL_DOWN_INTERVAL;

            socket = new SocketManager();

            NewGame();
        }