public SettingsViewModel( ILogger <SettingsViewModel> logger, ISettingsProvider settingsProvider, IAppFileSystem appFileSystem) { _logger = logger; _settingsProvider = settingsProvider; _appFileSystem = appFileSystem; LoadSettings(); }
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); }
public FileChooserFactory(IMainWindowProvider mainWindowProvider, IAppFileSystem appFileSystem) { _mainWindowProvider = mainWindowProvider; _appFileSystem = appFileSystem; }