Exemplo n.º 1
0
 private void                            SetHostFormCaption()
 {
     if (HostForm.InvokeRequired)
     {
         HostForm.Invoke(new Action(SetHostFormCaption));
     }
     else
     {
         HostForm.Text = IPAddressStr + " " + HostName;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// 分发事件
 /// </summary>
 /// <param name="action"></param>
 public static void DispatchEvents(Action action)
 {
     HostForm.Invoke(action);
 }