コード例 #1
0
 public MainViewModel()
 {
     _pvReportService = new PvReportService();
     _pvReportService.LoadPvReports();
     _progressNotificationService   = new ProgressNotificationService();
     SyncPvReportsViewModel         = new SyncPvReportsViewModel(_pvReportService, _progressNotificationService);
     ProgressVisualizationViewModel = new ProgressVisualizationViewModel(_progressNotificationService);
     AvailableYearsViewModel        = new YearsTabViewModel(_pvReportService);
 }
コード例 #2
0
        public SyncPvReportsViewModel(PvReportService pvReportService,
                                      ProgressNotificationService progressNotificationService)
        {
            _pvReportService             = pvReportService;
            _progressNotificationService = progressNotificationService;
            SyncSettingsModel            = StorageService.LoadSynchronizationInfo();

            SyncReportsCommand          = new Command <object>(OnSyncReportsCommandExecute, OnSyncReportsCommandCanExecute);
            OpenRepositoryFolderCommand = new Command <object>(OnOpenRepostoryFolderCommandExecute);
        }
コード例 #3
0
 public ProgressVisualizationViewModel(ProgressNotificationService progressNotificationService)
 {
     _progressNotificationService = progressNotificationService;
     _progressNotificationService.ProgressChanged += OnProgressChanged;
 }