コード例 #1
0
        private void InitializeViews()
        {
            var fileBasedProject = GetSelectedProject();

            if (fileBasedProject == null)
            {
                return;
            }
            else
            {
                _reports = new ProjectReportsOperations(fileBasedProject).GetProjectReports();
            }

            _dataViewModel = new DataViewModel(_reports, this)
            {
                ProjectLocalFolder = fileBasedProject.GetProjectInfo().LocalProjectFolder
            };

            _dataView = new DataView
            {
                DataContext = _dataViewModel
            };


            _reportViewControl?.UpdateViewModel(_dataView);
        }
コード例 #2
0
        private void InitializeViews()
        {
            _browserView   = new BrowserView();
            _dataViewModel = new DataViewModel();
            _dataViewModel.ReportSelectionChanged += OnReportSelectionChanged;
            _dataView = new DataView
            {
                DataContext = _dataViewModel
            };

            _reportViewModel = new ReportViewModel(_browserView, _dataViewModel, _dataView);
            _reportView      = new ReportView
            {
                DataContext = _reportViewModel
            };

            var reports = ReportsController.GetReports(false).Result;

            _reportsNavigationViewModel = new ReportsNavigationViewModel(reports, GetSettings(), _pathInfo);
            _reportsNavigationViewModel.ReportSelectionChanged += OnReportSelectionChanged;
            _reportsNavigationViewModel.ReportViewModel         = _reportViewModel;
            _reportsNavigationViewModel.ProjectLocalFolder      = ReportsController.GetProjectLocalFolder();

            _reportsNavigationView = new ReportsNavigationView(_reportsNavigationViewModel);
            _reportsNavigationViewModel.ReportsNavigationView = _reportsNavigationView;

            _reportViewControl.UpdateViewModel(_reportView);
            _reportsNavigationViewControl.UpdateViewModel(_reportsNavigationView);
        }
コード例 #3
0
        private void InitializeViews()
        {
            _reports = _controller.GetReports(false).Result;

            _dataViewModel = new DataViewModel(_reports)
            {
                ProjectLocalFolder = _controller.GetProjectLocalFolder()
            };

            _dataView = new DataView
            {
                DataContext = _dataViewModel
            };


            _reportViewControl?.UpdateViewModel(_dataView);
        }