public SettingsViewModel( IUserSettings userSettings, IStoreNotificationRegistrar notifications) { Guard.IsNotNull(userSettings, nameof(userSettings)); Guard.IsNotNull(notifications, nameof(notifications)); _userSettings = userSettings; _notifications = notifications; _theme = _userSettings.Get <string>(UserSettingsConstants.Theme); InitializeTheme(); }
public SettingsViewModel( IUserSettings userSettings, IScreensaverService screensaverService, ISystemInfoProvider systemInfoProvider, IStoreNotificationRegistrar notifications) { Guard.IsNotNull(userSettings, nameof(userSettings)); Guard.IsNotNull(notifications, nameof(notifications)); Guard.IsNotNull(screensaverService, nameof(screensaverService)); Guard.IsNotNull(systemInfoProvider, nameof(systemInfoProvider)); _systemInfoProvider = systemInfoProvider; _screensaverService = screensaverService; _userSettings = userSettings; _notifications = notifications; _theme = _userSettings.Get <string>(UserSettingsConstants.Theme); InitializeTheme(); }
public SettingsViewModel( IUserSettings userSettings, IScreensaverService screensaverService, ISystemInfoProvider systemInfoProvider, IStoreNotificationRegistrar notifications, ITelemetry telemetry) { Guard.IsNotNull(userSettings, nameof(userSettings)); Guard.IsNotNull(notifications, nameof(notifications)); Guard.IsNotNull(screensaverService, nameof(screensaverService)); Guard.IsNotNull(systemInfoProvider, nameof(systemInfoProvider)); Guard.IsNotNull(telemetry, nameof(telemetry)); _systemInfoProvider = systemInfoProvider; _screensaverService = screensaverService; _userSettings = userSettings; _notifications = notifications; _telemetry = telemetry; }