Example #1
0
        void ChessBoard_PlayerMarked(object sender, ButtonClickEvent e)
        {
            tmCoolDown.Start();
            pnlChessBoard.Enabled = false;
            prcbCoolDown.Value    = 0;

            socket.Send(new SocketData((int)SocketCommand.SEND_POINT, "", e.ClickedPoint));

            Listen();
        }
Example #2
0
        private void ChessBoard_PlayerMarked(object sender, ButtonClickEvent e)
        {
            tmCoolDown.Start( );
            panelChessBoard.Enabled = false;
            pcbCoolDown.Value       = 0;

            socket.Send(new SocketData(( int )SocketCommand.SEND_POINT, "", point: e.ClickedPoint));

            undoToolStripMenuItem.Enabled = false;

            Listen( );
        }
Example #3
0
        void ChessBoard_PlayerMarked(object sender, ButtonClickEvent e)
        {
            tmCoolDown.Start();

            prcbCoolDown.Value = 0;

            if (isLanGame)
            {
                pnlChessBoard.Enabled         = false;
                undoToolStripMenuItem.Enabled = false;
                socket.Send(new SocketData((int)SocketCommand.SEND_POINT, "", e.ClickedPoint));

                Listen();
            }
            else
            {
                if (ChessBoard.CurrentPlayer == 0)
                {
                    ChessBoard.StartComputer();
                }
            }
        }