示例#1
0
 private void setStatusBarPanelHostCountText(string text)
 {
     if (statusBar.InvokeRequired)
     {
         setStatusBarPanelHostCountTextDelegate d = new setStatusBarPanelHostCountTextDelegate(setStatusBarPanelHostCountText);
         this.Invoke(d, text);
     }
     else
     {
         statusBarPanelHostCount.Text = text;
     }
 }
 private void setStatusBarPanelHostCountText(string text)
 {
     if (statusBar.InvokeRequired)
     {
         setStatusBarPanelHostCountTextDelegate d = new setStatusBarPanelHostCountTextDelegate(setStatusBarPanelHostCountText);
         this.Invoke(d, text);
     }
     else
     {
         statusBarPanelHostCount.Text = text;
     }
 }