Exemple #1
0
 private void AddToList(ListViewItem lvItem)
 {
     if (_MCForm.lvErrorCollector.InvokeRequired)
     {
         AddToListCB d = new AddToListCB(AddToList);
         _MCForm.lvErrorCollector.Invoke(d, new object[] { lvItem });
     }
     else
     {
         _MCForm.lvErrorCollector.Items.Insert(0, lvItem);
     }
 }
 private void AddToList(ListViewItem lvItem)
 {
     if (this._MCForm.lvErrorCollector.InvokeRequired)
     {
         AddToListCB d = new AddToListCB(AddToList);
         this._MCForm.lvErrorCollector.Invoke(d, new object[] { lvItem });
     }
     else
     {
         this._MCForm.lvErrorCollector.Items.Insert(0, lvItem);
     }
 }
Exemple #3
0
 private void AddToList(ListViewItem ListItem)
 {
     if (this.lvSessions.InvokeRequired)
     {
         AddToListCB d = new AddToListCB(AddToList);
         this.lvSessions.Invoke(d, new object[] { ListItem });
     }
     else
     {
         this.lvSessions.Items.Add(ListItem);
     }
 }
 private void AddToList(ListViewItem ListItem)
 {
     if (this.lvSessions.InvokeRequired)
     {
         AddToListCB d = new AddToListCB(AddToList);
         this.lvSessions.Invoke(d, new object[] { ListItem });
     }
     else
     {
         this.lvSessions.Items.Add(ListItem);
     }
 }