public bool CanManualDownload(object parameter) { if (SelectedTorrent == null) { return(false); } else { return(!ManuallyDownloadedTorrents.Contains(SelectedTorrent)); } }
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(); }