Пример #1
0
 public void setText(string s)
 {
     if (this.InvokeRequired)
     {
         setStringCallBack d = new setStringCallBack(setText);
         this.Invoke(d, new object[] { s });
     }
     else
     {
         base.Text = s;
     }
 }
Пример #2
0
 public void Add(string name)
 {
     if (this.InvokeRequired)
     {
         setStringCallBack d = new setStringCallBack(Add);
         this.Invoke(d, new object[] { name });
     }
     else
     {
         this.Items.Add(name);
     }
 }
 public void Add(string name)
 {
     if (this.InvokeRequired)
     {
         setStringCallBack d = new setStringCallBack(Add);
         this.Invoke(d, new object[] { name });
     }
     else
     {
         this.Items.Add(name);
     }
 }
Пример #4
0
 public void setText(string s)
 {
     if (this.InvokeRequired)
     {
         setStringCallBack d = new setStringCallBack(setText);
         this.Invoke(d, new object[] { s });
     }
     else
     {
         base.Text = s;
     }
 }