Пример #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();
        }