void Button_List(object sender, RoutedEventArgs e) { var stream = LoadListResource(); var cl = new ContributorsList(); var cc = cl.ContributorCollection; var rf = new ReportingFactory(); var reportCreator = rf.ReportCreator(stream, cc); reportCreator.BuildExportList(); var previewViewModel = new PreviewViewModel(rf.ReportModel.ReportSettings, reportCreator.Pages); viewer.SetBinding(previewViewModel); }
void List_To_Pdf(object sender, RoutedEventArgs e) { var stream = LoadListResource(); var cl = new ContributorsList(); var cc = cl.ContributorCollection; var rf = new ReportingFactory(); var reportCreator = rf.ReportCreator(stream, cc); reportCreator.BuildExportList(); PdfExporter ex = new PdfExporter(reportCreator.Pages); ex.Run(); }