public static void ImportSharedSettings(this ApplicationSettingsBase settings, string configurationFilename)
        {
            SystemConfiguration configuration = SystemConfigurationHelper.GetExeConfiguration(configurationFilename);
            var values = SystemConfigurationHelper.GetSettingsValues(configuration, settings.GetType());

            SetSharedPropertyValues(settings, values);
        }
        private IDictionary <string, string> GetCriticalSettingsValues(Type settingsClassType)
        {
            // if the critical settings file doesn't exist or we couldn't figure out the path for some reason, fail silently
            if (string.IsNullOrEmpty(_criticalSettingsPath) || !File.Exists(_criticalSettingsPath))
            {
                return(new Dictionary <string, string>(0));
            }

            var criticalConfiguration = SystemConfigurationHelper.GetExeConfiguration(_criticalSettingsPath);

            return(SystemConfigurationHelper.GetSettingsValues(criticalConfiguration, settingsClassType));
        }