public List <ReportItemDTO> ListDependantItems(string reportModelpath) { var items = webserviceProxy.ListDependentItems(reportModelpath); return(items.Select(item => new ReportItemDTO { Name = item.Name, Path = item.Path }).ToList()); }
///// <summary> ///// Fills the snapshots. ///// </summary> //private void FillSnapshots() //{ // lvSnapshots.Items.Clear(); // if (_reportServerProperties2005.ListReportHistory(_reportPath).Length > 0) // { // foreach (ReportHistorySnapshot reportHistorySnapshot in _reportServerProperties2005.ListReportHistory(_reportPath)) // { // var li = new ListViewItem // { // Text = reportHistorySnapshot.CreationDate.ToLongDateString(), // Tag = reportHistorySnapshot // }; // li.SubItems.Add(Strings.FormatNumber((reportHistorySnapshot.Size / 1024), 2) + " KB"); // li.SubItems.Add(reportHistorySnapshot.HistoryID); // li.ImageKey = @"Snapshot"; // lvSnapshots.Items.Add(li); // } // } // else // { // lvSnapshots.Items.Add("No Snapshots available."); // } //} /// <summary> /// Fills the dependent items. /// </summary> private void FillDependentItems() { lvDependentItems.Items.Clear(); if (_reportServerProperties2005.ListDependentItems(_reportPath).Length > 0) { foreach (CatalogItem catalogItem in _reportServerProperties2005.ListDependentItems(_reportPath)) { var li = new ListViewItem { Text = catalogItem.Name, Tag = catalogItem }; li.SubItems.Add(catalogItem.Path); li.SubItems.Add(catalogItem.Type.ToString()); lvDependentItems.Items.Add(li); } } else { lvDependentItems.Items.Add("No Dependent Items."); } }