Пример #1
0
 public void updateTextBox(String str)
 {
     if (this.textBox1.InvokeRequired)
     {
         delegateUpdateTextBox ut = new delegateUpdateTextBox(updateTextBox);
         this.Invoke(ut, str);
     }
     else
     {
         textBox1.Text = str;
     }
 }
Пример #2
0
 public void updateTextBox(string text)
 {
     if (this.InvokeRequired)
     {
         delegateUpdateTextBox deleg = new delegateUpdateTextBox(this.updateTextBox);
         this.Invoke(deleg, new object[] { text });
     }
     else
     {
         this.txt_ajouterpj.Text = text;
     }
 }