Example #1
0
 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() + " %";
 }
Example #2
0
 public static ListViewItem CreateListViewItem(DLFile dlFile)
 {
     ListViewItem lvItem = new ListViewItem();
     lvItem.Text = dlFile.DlURL;
     lvItem.SubItems.Add(dlFile.Status.ToString());
     return lvItem;
 }