Exemple #1
0
 private void m_RefreshList()
 {
     foreach (ListViewItem Item in Items)
     {
         InterfaceFile file = krnGateway.GetDownloadFile(((InterfaceFile)Item.Tag).strHash);
         if (file == null)
         {
             Items.Remove(Item);
         }
         else
         {
             SharedToItem(file, Item);
         }
     }
 }
 private void m_RefreshList(CkernelGateway in_krnGateway)
 {
     foreach (ListViewItem Item in Items)
     {
         InterfaceFile file = in_krnGateway.GetDownloadFile(((InterfaceFile)Item.Tag).strHash);
         if ((file == null) || ((m_ClearingCompleted) && (((InterfaceFile)Item.Tag).Status == 9)))
         {
             Items.Remove(Item);
         }
         else
         {
             FileToItem(file, Item);
         }
     }
     //enable this to autosort the list
     if (eLePhantForm.preferences.GetBool("AutoSort"))
     {
         this.ListViewItemSorter = TheColumnSorter;
         this.Sort();
         this.ListViewItemSorter = null;
     }
 }
 private void m_RefreshList(CkernelGateway in_krnGateway)
 {
     foreach (ListViewItem Item in Items)
     {
         InterfaceFile file=in_krnGateway.GetDownloadFile(((InterfaceFile)Item.Tag).strHash);
         if ((file==null)||((m_ClearingCompleted)&&(((InterfaceFile)Item.Tag).Status==9))) Items.Remove(Item);
         else FileToItem(file,Item);
     }
     //enable this to autosort the list
     if (eLePhantForm.preferences.GetBool("AutoSort"))
     {
         this.ListViewItemSorter = TheColumnSorter;
         this.Sort();
         this.ListViewItemSorter = null;
     }
 }