static void LoadLocalConfig(string configFilePath) { ModifiedSetting.LoadLocalConfig(configFilePath); if (ConfigSetting.GetValue <int>("SettingVersion") > ModifiedSetting.GetValue <int>("SettingVersion")) { // Lower version, reset to default ModifiedSetting.Clear(); return; } foreach (var setting in ModifiedSetting) { ConfigSetting.SetValue(setting.Key, setting.Value); } }
static public void SaveLocalConfig() { ModifiedSetting.SaveLocalConfig(LocalConfigPath); }
// Add value to a value set static public void SetValue(string keySet, string key, string value) { ConfigSetting.SetValue(keySet, key, value); ModifiedSetting.SetValue(keySet, key, value); }