void OverviewReport_Click(object sender, RoutedEventArgs e) { var overviewReport = new OverviewReport(fileNames); var reportCreator = overviewReport.Run(list); var previewViewModel = new PreviewViewModel(overviewReport.ReportSettings,reportCreator.Pages); viewer.SetBinding(previewViewModel); ActivateReportTab(); }
void Button_Click(object sender, RoutedEventArgs e) { OverviewReport o = new OverviewReport(fileNames); var reportCreator = o.Run(list); var previewViewModel = new PreviewViewModel(o.ReportSettings,reportCreator.Pages); viewer.SetBinding(previewViewModel); }