Example #1
0
        public SettingsViewModel(
            ILogger <SettingsViewModel> logger,
            ISettingsProvider settingsProvider,
            IAppFileSystem appFileSystem)
        {
            _logger           = logger;
            _settingsProvider = settingsProvider;
            _appFileSystem    = appFileSystem;

            LoadSettings();
        }
Example #2
0
        public ReportViewModel(
            IMessenger messenger,
            IFileChooserFactory fileChooserFactory,
            IAppManager appManager,
            IAppFileSystem appFileSystem,
            IActiveWindowsTracker activeWindowsTracker)
        {
            _fileChooserFactory   = fileChooserFactory;
            _appManager           = appManager;
            _appFileSystem        = appFileSystem;
            _activeWindowsTracker = activeWindowsTracker;

            messenger.Register <ChooseJsonFileDialogEvent>(this, OnChooseJsonFileDialog);
            messenger.Register <ShowCurrentReportEvent>(this, OnShowCurrentReport);
            messenger.Register <SaveCurrentReportEvent>(this, OnSaveCurrentReport);
        }
Example #3
0
 public FileChooserFactory(IMainWindowProvider mainWindowProvider, IAppFileSystem appFileSystem)
 {
     _mainWindowProvider = mainWindowProvider;
     _appFileSystem      = appFileSystem;
 }