public void DLViewUpdatePercentage(DLFile dlFile, int percentage) { ListViewItem lvItem = listViewDL.FindItemWithText(dlFile.DlURL); if (lvItem != null) listViewDL.Items[lvItem.Index].SubItems[1].Text = percentage.ToString() + " %"; }
public static ListViewItem CreateListViewItem(DLFile dlFile) { ListViewItem lvItem = new ListViewItem(); lvItem.Text = dlFile.DlURL; lvItem.SubItems.Add(dlFile.Status.ToString()); return lvItem; }