protected virtual void OnTextRecivedEventSArgs(TextRecivedEventArgs e) { EventHandler <TextRecivedEventArgs> handler = OnTextRecivedEventArgs; if (handler != null) { handler(this, e); } }
private void HandlClientTextRecive(object sender, TextRecivedEventArgs e) { string ip = ((IPEndPoint)(e.WhoSend.Client.RemoteEndPoint)).Address.ToString(); foreach (winShell item in Shells) { if (ip == item.IP) { item.RecivedText = e.TextReceived; } } }