Exemplo n.º 1
0
        public bool HaveChanged()
        {
            var storedSettings = _settingsProvider.Settings;

            if (_gpoSettings.Language == null)
            {
                if (_currentSettingsSnapshot.ApplicationSettings.Language != _languageProvider.CurrentLanguage.Iso2)
                {
                    return(true);
                }
            }

            return(!_currentSettingsSnapshot.Equals(storedSettings));
        }
Exemplo n.º 2
0
        public bool HaveChanged()
        {
            var storedSettings = _settingsProvider.Settings;

            if (string.IsNullOrWhiteSpace(_gpoSettings?.Language))
            {
                if (_currentSettingsSnapshot.ApplicationSettings.Language != _languageProvider.CurrentLanguage.Iso2)
                {
                    _logger.Trace("Checking settings for changes: The language has changed");
                    return(true);
                }
            }

            var settingsHaveChanged = !_currentSettingsSnapshot.Equals(storedSettings);

            _logger.Trace("Settings have changed: " + settingsHaveChanged);

            return(settingsHaveChanged);
        }