예제 #1
0
        static Settings()
        {
            Localization.LanguageChanged += () =>
            {
                LanguageCode.SetValue(Localization.CurrentCulture.LCID16);
                SaveProperties();
            };

            Config = Config.Create(ConfigType.JSON);

            LanguageCode = Config.GetProperty(LanguageCodeKey, Localization.BasicCulture.LCID, SettingsSection);

            SaveProperties();
        }
예제 #2
0
 public SubLocalizationPropertyAdapter(IConfigProperty <String> property)
 {
     Config = property.Config;
 }
예제 #3
0
 public T GetValue <T>(IConfigProperty <T> property)
 {
     return(GetValue(property.Key, property.DefaultValue, property.Crypt.HasFlag(CryptAction.Encrypt), property.CryptKey, property.Sections));
 }
예제 #4
0
 public T GetOrSetValue <T>(IConfigProperty <T> property)
 {
     return(GetOrSetValue(property.Key, property.DefaultValue, property.Crypt, property.CryptKey, property.Sections));
 }
예제 #5
0
 public void SetValue <T>(IConfigProperty <T> property, T value)
 {
     SetValue(property.Key, value, property.Crypt.HasFlag(CryptAction.Encrypt), property.CryptKey, property.Sections);
 }