public void CallFather(string s) { if (Father != null) { TcpEventArgs e = new TcpEventArgs(); e.data = s; Father.BeginInvoke(Father.tcpEvent, this, e); } }
public static void TCPhandler(object sender, TcpEventArgs e) { if (e.data == "撒花") { for (int i = 0; i < 10; ++i) new FormClock(e.data).Show(); } else { FormClock bb = new FormClock(e.data); bb.Show(); } }