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

            ChessBoard            = new ChessBoardManager(pnlChessBoard, txbPlayerName);
            ChessBoard.EndedGame += EndGame;
            ChessBoard.DrawChessBoard();
        }
Пример #2
0
        public Form1()
        {
            InitializeComponent();

            ChessBoard = new ChessBoardManager(pnlChessBoard);

            ChessBoard.DrawChessBoard();
        }
Пример #3
0
        public Form1()
        {
            InitializeComponent();

            Control.CheckForIllegalCrossThreadCalls = false;

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

            ChessBoard.DrawChessBoard();

            socket = new SocketManager();
        }
Пример #4
0
        public Form1()
        {
            InitializeComponent();

            chessBoard               = new ChessBoardManager(pnlChessBoard, txtPlayerName, 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();
        }
Пример #5
0
 public Form1()
 {
     InitializeComponent();
     chessBoard = new ChessBoardManager(pnChessBoard, txbPlayerName, pbMark);
     chessBoard.DrawChessBoard();
 }
Пример #6
0
 private void btnNewGame_Click(object sender, EventArgs e)
 {
     ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName);
     ChessBoard.DrawChessBoard();
 }
Пример #7
0
 void isNewGame()
 {
     ChessBoard.DrawChessBoard();
     ChessBoard = new ChessBoardManager(pnlChessBoard, txbPlayerName);
 }