Beispiel #1
0
 private void ProcessData(SocKetData data)
 {
     if (data == null)
     {
         return;
     }
     PanelBoardChess.Controls.Add(data.Btn);
     MessageBox.Show(data.Mess);
 }
Beispiel #2
0
        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();
        }