Esempio n. 1
0
 private void SetControlText(Control ctrl, string sText)
 {
     if (ctrl.InvokeRequired)
     {
         ChangeControlText method = new ChangeControlText(this.SetControlText);
         base.Invoke(method, new object[] { ctrl, sText });
     }
     else
     {
         ctrl.Text = sText;
         base.Update();
     }
 }
 private void SetControlText(Control ctrl, string sText)
 {
     if (ctrl.InvokeRequired)
     {
         ChangeControlText method = new ChangeControlText(this.SetControlText);
         base.Invoke(method, new object[] { ctrl, sText });
     }
     else
     {
         ctrl.Text = sText;
         base.Update();
     }
 }