public MainViewModel() { _pvReportService = new PvReportService(); _pvReportService.LoadPvReports(); _progressNotificationService = new ProgressNotificationService(); SyncPvReportsViewModel = new SyncPvReportsViewModel(_pvReportService, _progressNotificationService); ProgressVisualizationViewModel = new ProgressVisualizationViewModel(_progressNotificationService); AvailableYearsViewModel = new YearsTabViewModel(_pvReportService); }
public SyncPvReportsViewModel(PvReportService pvReportService, ProgressNotificationService progressNotificationService) { _pvReportService = pvReportService; _progressNotificationService = progressNotificationService; SyncSettingsModel = StorageService.LoadSynchronizationInfo(); SyncReportsCommand = new Command <object>(OnSyncReportsCommandExecute, OnSyncReportsCommandCanExecute); OpenRepositoryFolderCommand = new Command <object>(OnOpenRepostoryFolderCommandExecute); }
public ProgressVisualizationViewModel(ProgressNotificationService progressNotificationService) { _progressNotificationService = progressNotificationService; _progressNotificationService.ProgressChanged += OnProgressChanged; }