Пример #1
0
 public virtual void ListBoxItemAdd(ListBox Object, Object Item)
 {
     try
     {
         if (this.InvokeRequired)
         {
             ListBoxItemAddDelegate dele = new ListBoxItemAddDelegate(ListBoxItemAdd2);
             this.Invoke(dele, new object[] { Object, Item });
         }
         else
         {
             ListBoxItemAdd2(Object, Item);
         }
     }
     catch { }
 }
Пример #2
0
 public virtual void ListBoxItemAdd(ListBox Object, Object Item)
 {
     if (this.InvokeRequired)
     {
         ListBoxItemAddDelegate dele = new ListBoxItemAddDelegate(ListBoxItemAdd2);
         this.Invoke(dele, new object[] { Object, Item });
     }
     else
     {
         ListBoxItemAdd2(Object, Item);
     }
 }