static Settings() { Localization.LanguageChanged += () => { LanguageCode.SetValue(Localization.CurrentCulture.LCID16); SaveProperties(); }; Config = Config.Create(ConfigType.JSON); LanguageCode = Config.GetProperty(LanguageCodeKey, Localization.BasicCulture.LCID, SettingsSection); SaveProperties(); }
public SubLocalizationPropertyAdapter(IConfigProperty <String> property) { Config = property.Config; }
public T GetValue <T>(IConfigProperty <T> property) { return(GetValue(property.Key, property.DefaultValue, property.Crypt.HasFlag(CryptAction.Encrypt), property.CryptKey, property.Sections)); }
public T GetOrSetValue <T>(IConfigProperty <T> property) { return(GetOrSetValue(property.Key, property.DefaultValue, property.Crypt, property.CryptKey, property.Sections)); }
public void SetValue <T>(IConfigProperty <T> property, T value) { SetValue(property.Key, value, property.Crypt.HasFlag(CryptAction.Encrypt), property.CryptKey, property.Sections); }