コード例 #1
0
 public void Execute(object parameter)
 {
     if (_settingsChanged.HaveChanged())
     {
         _settingsProvider.UpdateSettings(_currentSettingsProvider.Settings);
         _settingsLoader.SaveSettingsInRegistry(_currentSettingsProvider.Settings);
     }
 }
コード例 #2
0
        private void DoSaveSettings()
        {
            //Remove shared profiles from copy and save this copy to preserve shred profile in settingsProvider
            var settings       = _settingsProvider.Settings.Copy();
            var sharedProfiles = settings.ConversionProfiles.Where(p => p.Properties.IsShared).ToArray();

            foreach (var profile in sharedProfiles)
            {
                settings.ConversionProfiles.Remove(profile);
            }
            _loader.SaveSettingsInRegistry(settings);
        }
コード例 #3
0
        public void SaveCurrentSettings()
        {
            var settings = _settingsProvider.Settings;

            _loader.SaveSettingsInRegistry(settings);
        }
コード例 #4
0
        private void SaveSettings()
        {
            var settings = _settingsProvider.Settings;

            _loader.SaveSettingsInRegistry(settings);
        }