Example #1
0
        public Form1()
        {
            InitializeComponent();

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

            ChessBoard.DrawChessBoard();
        }
Example #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();
        }
Example #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();
 }
Example #4
0
File: Form1.cs Project: thaiIT/.Net
        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();
        }
Example #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();
        }