示例#1
0
 public bool CanManualDownload(object parameter)
 {
     if (SelectedTorrent == null)
     {
         return(false);
     }
     else
     {
         return(!ManuallyDownloadedTorrents.Contains(SelectedTorrent));
     }
 }
示例#2
0
        public void ExecuteRemoveDownload(object parameter)
        {
            if (ManuallyDownloadedTorrents.Contains(SelectedDownload))
            {
                ManuallyDownloadedTorrents.Remove(SelectedDownload);
            }
            else
            {
                foreach (Filter filter in Filters)
                {
                    if (filter.DownloadedTorrents.Contains(SelectedDownload))
                    {
                        filter.DownloadedTorrents.Remove(SelectedDownload);
                    }
                }
            }

            RefreshAllDownloads();
        }