Exemple #1
0
 private void AddListViewItem(ListViewItem Item)
 {
     if (lvHosts.InvokeRequired)
     {
         AddListViewItemCB d = new AddListViewItemCB(AddListViewItem);
         this.Invoke(d, new object[] { Item });
     }
     else
     {
         lvHosts.Items.Add(Item);
         Item.EnsureVisible();
     }
 }
 private void AddListViewItem(ListViewItem Item)
 {
     if (lvHosts.InvokeRequired)
     {
         AddListViewItemCB d = new AddListViewItemCB(AddListViewItem);
         this.Invoke(d, new object[] { Item });
     }
     else
     {
         lvHosts.Items.Add(Item);
         Item.EnsureVisible();
     }
 }