예제 #1
0
 public static void SetMainThreadHint(Label label, string msg)
 {
     if (label.InvokeRequired)
     {
         SetMainThreadHintLabelDelegate msgCallback = new SetMainThreadHintLabelDelegate(WindowFormDelegate.SetMainThreadHint);
         label.Invoke(msgCallback, new object[] { label, msg });
     }
     else
     {
         label.Text = msg;
     }
 }
예제 #2
0
 public static void SetMainThreadHint(Label label, string msg)
 {
     if (label.InvokeRequired)
     {
         SetMainThreadHintLabelDelegate msgCallback = new SetMainThreadHintLabelDelegate(WindowFormDelegate.SetMainThreadHint);
         label.Invoke(msgCallback, new object[] { label, msg });
     }
     else
     {
         label.Text = msg;
     }
 }