示例#1
0
 public static void SetStatusDownloading(Control control, string text)
 {
     if (control.InvokeRequired)
     {
         SetStatusDownloadingCallBack d = new SetStatusDownloadingCallBack(SetStatusDownloading);
         control.Invoke(d, new object[] { control, text });
     }
     else
     {
         control.Text = text + control.Text;
     }
 }
示例#2
0
 public static void SetStatusDownloading(Control control, string text)
 {
     if (control.InvokeRequired)
     {
         SetStatusDownloadingCallBack d = new SetStatusDownloadingCallBack(SetStatusDownloading);
         control.Invoke(d, new object[] { control, text });
     }
     else
     {
         control.Text = text + control.Text;
     }
 }