/// <summary> /// Reload all reports from the SSRS server /// </summary> private async Task RefreshExecute() { this.IsWaiting = true; this.Reports = new ObservableCollection <Data.Report>(); if (_service != null) { try { ReportTransfert.ReportService2010.CatalogItem[] items = await _service.GetItems("/"); this.Reports = new ObservableCollection <Data.Report>(items.Select(i => new Data.Report(_service, i))); } catch (Exception ex) { this.DisplayException(ex); } } this.OnPropertyChanged("Reports"); this.IsWaiting = false; }