private void ProcessData(SocKetData data) { if (data == null) { return; } PanelBoardChess.Controls.Add(data.Btn); MessageBox.Show(data.Mess); }
private void SenBtnWhenActiveEventClick() { //SentBtn btnSent = new SentBtn(board.SentBtn); SocKetData data = new SocKetData { Command = Command.Button, Btn = board.SentBtn(), Mess = "da gui button" }; listen(); socket.Sent(data); listen(); }