public void Execute(object parameter) { if (_settingsChanged.HaveChanged()) { _settingsProvider.UpdateSettings(_currentSettingsProvider.Settings); _settingsLoader.SaveSettingsInRegistry(_currentSettingsProvider.Settings); } }
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); }
public void SaveCurrentSettings() { var settings = _settingsProvider.Settings; _loader.SaveSettingsInRegistry(settings); }
private void SaveSettings() { var settings = _settingsProvider.Settings; _loader.SaveSettingsInRegistry(settings); }