private void SetupSecondaryView() { xmlView = new XmlView(generator, this); SecondaryViewContents.Add(xmlView); preview = new ReportPreview(loader, this); SecondaryViewContents.Add(preview); reportViewer = new ReportViewerSecondaryView(loader, this); SecondaryViewContents.Add(reportViewer); }
void SetupSecondaryView() { if (!SecondaryViewContents.OfType <XmlView>().Any()) { var xmlView = new XmlView(generator, this); SecondaryViewContents.Add(xmlView); } if (!SecondaryViewContents.OfType <WpfPreview>().Any()) { var preview = new WpfPreview(loader, this); SecondaryViewContents.Add(preview); } }
private void SetupSecondaryView() { LoggingService.Info("Form Designer: SetupSecondaryView "); xmlView = new XmlView(generator, this); SecondaryViewContents.Add(xmlView); reportPreview = new ReportPreview(loader, this); SecondaryViewContents.Add(reportPreview); reportViewer = new ReportViewerSecondaryView(loader, this); SecondaryViewContents.Add(reportViewer); var wpfViewer = new WPFReportPreview(loader, this); SecondaryViewContents.Add(wpfViewer); // testView = new TestWPFReportPreview(loader,this); // SecondaryViewContents.Add(testView); }