private void SafeSendListItemUpdate(object sender, ListItemUpdateEventArgs e) { try { if (OnListItemUpdate != null) { OnListItemUpdate(this, e); } } catch { } }
void convertWorker_OnListItemUpdate(object sender, ListItemUpdateEventArgs e) { if (workerId != e.Id) { return; } if (e.Index < listViewSourceFiles.Items.Count) { FileConvertListViewItem li = listViewSourceFiles.Items[e.Index] as FileConvertListViewItem; if (li != null) { li.SubItems["status"].Text = e.Message ?? string.Empty; this.Refresh(); } } }