public SettingsViewModel( IPageService pageService, IMonitorsService monitorsService, IOptionsService optionsService, IActiveMediaItemsService activeMediaItemsService, IThumbnailService thumbnailService, ISnackbarService snackbarService) { _pageService = pageService; _monitorsService = monitorsService; _optionsService = optionsService; _thumbnailService = thumbnailService; _activeMediaItemsService = activeMediaItemsService; _snackbarService = snackbarService; _recentlyUsedMediaFolders = new RecentlyUsedFolders(); InitRecentlyUsedFolders(); _monitors = GetSystemMonitors(); _languages = GetSupportedLanguages(); _loggingLevels = GetLoggingLevels(); _fadingTypes = GetImageFadingTypes(); _fadingSpeeds = GetFadingSpeedTypes(); _renderingMethods = GetRenderingMethods(); _magnifierShapes = GetMagnifierShapes(); _magnifierSizes = GetMagnifierSizes(); _mirrorHotKeys = GetMirrorHotKeys(); _pageService.NavigationEvent += HandleNavigationEvent; InitCommands(); Messenger.Default.Register <ShutDownMessage>(this, OnShutDown); }
public SettingsViewModel( IPageService pageService, IMonitorsService monitorsService, IOptionsService optionsService, IThumbnailService thumbnailService) { _pageService = pageService; _monitorsService = monitorsService; _optionsService = optionsService; _thumbnailService = thumbnailService; _recentlyUsedMediaFolders = new RecentlyUsedFolders(); InitRecentlyUsedFolders(); _monitors = GetSystemMonitors().ToArray(); _loggingLevels = GetLoggingLevels().ToArray(); _fadingTypes = GetImageFadingTypes().ToArray(); _fadingSpeeds = GetFadingSpeedTypes().ToArray(); _pageService.NavigationEvent += HandleNavigationEvent; InitCommands(); Messenger.Default.Register <ShutDownMessage>(this, OnShutDown); }