private ICollection <int> GetAllRows(DownloadInfoStatus status) { var result = new List <int>(); for (int i = 0; i < _manager.Information.StartArgs.ItemsToDownload.Count; i++) { if (_manager.Information.StartArgs.ItemsToDownload[i].Status == status) { result.Add(i); } } return(result); }
private ICollection <int> GetAllSelectedRows(DownloadInfoStatus status) { return(GetAllSelectedRows().Where(ind => _manager.Information.StartArgs.ItemsToDownload[ind].Status == status).ToList()); }