Beispiel #1
0
 public void WdSetText(int itemsNum, int subItemsNum, string str)
 {
     if (this.InvokeRequired)
     {
         WdSetTextCallback d = new WdSetTextCallback(WdSetText);
         this.Invoke(d, new object[] { itemsNum, subItemsNum, str });
     }
     else
     {
         this.Items[itemsNum].SubItems[subItemsNum].Text = str;
     }
 }
Beispiel #2
0
 public void WdSetText(string str)
 {
     if (this.InvokeRequired)
     {
         WdSetTextCallback d = new WdSetTextCallback(WdSetText);
         this.Invoke(d, new object[] { str });
     }
     else
     {
         this.Text = str;
     }
 }