void Button_Plain(object sender, RoutedEventArgs e)
        {
            var stream = LoadPlainResource();

            var rf = new ReportingFactory();
            var reportCreator = rf.ReportCreator(stream);
            reportCreator.BuildExportList();
            var previewViewModel = new PreviewViewModel (rf.ReportModel.ReportSettings,reportCreator.Pages);
            viewer.SetBinding(previewViewModel);
        }
        void Button_Graphics(object sender, RoutedEventArgs e)
        {
            var stream = GraphicsContainer();

            var rf = new ReportingFactory();
            var reportCreator = rf.ReportCreator(stream);
            reportCreator.BuildExportList();
            var previewViewModel = new PreviewViewModel (rf.ReportModel.ReportSettings,reportCreator.Pages);
            viewer.SetBinding(previewViewModel);
        }
        void Button_Small(object sender, RoutedEventArgs e)
        {
            var stream = LoadSmallResource();
            var cl = new ContributorsList();
            var cc = cl.SmallContributorCollection;

            var rf = new ReportingFactory();
            var reportCreator = rf.ReportCreator (stream,cc);
            reportCreator.BuildExportList();

            var previewViewModel = new PreviewViewModel (rf.ReportModel.ReportSettings,reportCreator.Pages);
            viewer.SetBinding(previewViewModel);
        }
Exemplo n.º 4
0
        protected override void LoadFromPrimary()
        {
            LoggingService.Info("LoadFrompromary");

            var xml = designerLoader.SerializeModel();
            var modelLoader = new ModelLoader();
            var reportmodel = modelLoader.Load(xml.DocumentElement) as ReportModel;
            var reportingFactory = new ReportingFactory();
            var reportCreator = reportingFactory.ReportCreator(reportmodel);
            reportCreator.BuildExportList();
            var previewViewModel = new PreviewViewModel (reportingFactory.ReportModel.ReportSettings,reportCreator.Pages);
            viewer.SetBinding(previewViewModel);
        }
Exemplo n.º 5
0
		protected override void LoadFromPrimary()
		{
			Pages.Clear();
			var xmDoc = designerLoader.CreateXmlModel();
			var modulLoader = new ModelLoader();
			ReportModel model = (ReportModel)modulLoader.Load(xmDoc.DocumentElement);
			
			var reportingFactory = new ReportingFactory();
			var reportCreator = reportingFactory.ReportCreator(model);
			reportCreator.BuildExportList();
			
			PreviewViewModel previewViewModel = new PreviewViewModel (model.ReportSettings,reportCreator.Pages);
			viewer.SetBinding(previewViewModel);
		}
Exemplo n.º 6
0
		public void SetBinding (PreviewViewModel model)
		{
			this.DataContext = model;
		}
Exemplo n.º 7
0
		void DependecyReport_Click(object sender, RoutedEventArgs e)
		{
			var dependencyReport = new DependencyReport(fileNames);
			var reportCreator = dependencyReport.Run(list);
			var previewViewModel = new PreviewViewModel(dependencyReport.ReportSettings,reportCreator.Pages);
			viewer.SetBinding(previewViewModel);
			ActivateReportTab();
			
		}
Exemplo n.º 8
0
 public void SetBinding(PreviewViewModel model)
 {
     this.DataContext = model;
 }