예제 #1
0
 public void CallFather(string s)
 {
     if (Father != null)
     {
         TcpEventArgs e = new TcpEventArgs();
         e.data = s;
         Father.BeginInvoke(Father.tcpEvent, this, e);
     }
 }
예제 #2
0
 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();
     }
 }