Exemple #1
0
 public static void ClearListView(ListView list)
 {
     if (list.InvokeRequired)
     {
         var d = new ClearListViewDelegate(ClearListView);
         list.Invoke(d, new object[] { list });
     }
     else
     {
         list.Items.Clear();
     }
 }
Exemple #2
0
 public void clearListView()
 {
     if (this.InvokeRequired)
     {
         ClearListViewDelegate clvd = new ClearListViewDelegate(clearListView);
         this.Invoke(clvd);
     }
     else
     {
         imageListView1.Items.Clear();
     }
 }
Exemple #3
0
 public void clearListView()
 {
     if (this.InvokeRequired)
     {
         ClearListViewDelegate clvd = new ClearListViewDelegate(clearListView);
         this.Invoke(clvd);
     }
     else
     {
         imageListView1.Items.Clear();
     }
 }