Esempio n. 1
0
 public static void AddCtrlValue(Form parentForm, Control ctrl, string value)
 {
     if (parentForm.InvokeRequired)
     {
         AddCtrlValueHandler method = new AddCtrlValueHandler(AddCtrlValueMethod);
         parentForm.BeginInvoke(method, new object[] { ctrl, value });
     }
     else
     {
         AddCtrlValueMethod(ctrl, value);
     }
 }
Esempio n. 2
0
 public static void AddCtrlValue(Form parentForm, Control ctrl, string value)
 {
     if (parentForm.InvokeRequired)
     {
         AddCtrlValueHandler method = new AddCtrlValueHandler(AddCtrlValueMethod);
         parentForm.BeginInvoke(method, new object[] { ctrl, value });
     }
     else
     {
         AddCtrlValueMethod(ctrl, value);
     }
 }