Пример #1
0
 public void ClearItems()
 {
     if (this.InvokeRequired)
     {
         ClearItemsCallback d = new ClearItemsCallback(ClearItems);
         this.Invoke(d, new object[] { });
     }
     else
     {
         this.Items.Clear();
     }
 }
Пример #2
0
 private void ClearItems()
 {
     if (BuildListView.InvokeRequired)
     {
         ClearItemsCallback d = ClearItems;
         Invoke(d, new object[] {});
     }
     else
     {
         BuildListView.Items.Clear();
     }
 }