internal void InitFromConfiguration() { this._Categories = new UserSettingsCategoryCollection(); foreach (PropertyGroupConfigurationElement elem in UserSettingsConfig.GetConfig().Categories) { this._Categories.Add(new UserSettingsCategory(elem)); } }
public string GetDefaultValue() { //object defaultValue = UserSettingsConfig.GetConfig().Applications[AppName].Programs[ProgName].SettingProperties[PropName].DefaultValue; object defaultValue = UserSettingsConfig.GetConfig().Categories[Categoryname].AllProperties[PropName].DefaultValue; if (defaultValue != null) { return(defaultValue.ToString()); } else { return(string.Empty); } }
public UserSettingsCacheItemDependency() { this.originalConfigHashCode = UserSettingsConfig.GetConfig().GetHashCode(); }