Ejemplo n.º 1
0
        private void ResetSettings()
        {
            var currentLanguage = _config.UserSettings.LanguageSetting;

            System.IO.File.Delete(System.IO.Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData), "Rubberduck\\rubberduck.config"));
            var config = _configService.GetDefaultConfiguration();

            _configService.SaveConfiguration(config, !currentLanguage.Equals(config.UserSettings.LanguageSetting));
        }
Ejemplo n.º 2
0
        private void ResetSettings()
        {
            var defaultConfig = _configService.GetDefaultConfiguration();

            foreach (var vm in SettingsViews.Select(v => v.Control.ViewModel))
            {
                vm.SetToDefaults(defaultConfig);
            }
        }