public async void CreateReport(string projectPath, CancellationToken cancellationToken) { this.progress = new Progress<string>((result) => { OnProgressChanged(result); }); this.report = await InspectProject.CreateReport(projectPath, cancellationToken, this.progress, this.settings); OnReportCreated(this.report); }
private void OnReportCreated(Report report) { ReportCreatedEvent reportCreatedEvent = eventAggregator.GetEvent<ReportCreatedEvent>(); reportCreatedEvent.Publish(report); //if (this.ReportCreated != null) //{ // this.ReportCreated.Invoke(this, new ReportCreatedEventArgs() { Report = report }); //} }
private static IEnumerable<IssueWithDescription> AllIssuesWithDescription(Report report) { return report.ProjectIssues .SelectMany(p => p.Issues .Select(i => { return new IssueWithDescription ( i, report.IssueTypes.Single(it => it.Id == i.TypeId), report.Information ); })); }
private void OnReportCreated(Report report) { this.IsRequestingIssues = false; }
private void OnReportCreated(Report report) { // populate differently structured collections. // each collection will be a source for different treeview hierarchy this.ProjectIssues = new ObservableCollection<IssueWithDescription>(report.AllIssues); }