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(); }
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( ); }
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(); } } }