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); } }
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); } }