예제 #1
0
 private void InserLVItem(ListViewItem item, int index)
 {
     if (listView1.InvokeRequired)
     {
         InsertLVItemCallback d = new InsertLVItemCallback(InserLVItem);
         listView1.BeginInvoke(d, new object[] { item, index });
     }
     else
     {
         listView1.Items.Insert(index, item);
     }
 }
예제 #2
0
 private void InserLVItem(ListViewItem item, int index)
 {
     if (listView1.InvokeRequired)
     {
         InsertLVItemCallback d = new InsertLVItemCallback(InserLVItem);
         listView1.BeginInvoke(d, new object[] { item, index });
     }
     else
     {
         listView1.Items.Insert(index, item);
     }
 }