private void ChessBroad_PlayerMarked(object sender, ButtonClickEvent e) { sck.SendData(new SocketData((int)SocketCommand.SEND_POINT, null, e.ClickPoint)); panelChessBroad.Enabled = false; pcbCoolDown.Value = 0; timerCoolDown.Start(); Listen(); }
private void NewBanCo_PlayerMark(object sender, ButtonClickEvent e) { if (newBanCo.CheDoChoi == 2) { try { pnlBanCo.Enabled = false; socket.Send(new SocketData((int)SocketCommand.SEND_POINT, "", e.ClickedPoint)); Listen(); } catch { } } }