public void Load() { /*IConfigSource source = new IniConfigSource(filename); * foreach (IConfig config in source.Configs) * { * string[] keys = config.GetKeys(); * for (int x = 0; x < keys.Length; x++) * { * Setting setting = new Setting(config.Name, keys[x]); * setting.Data = config.GetString(keys[x]); * settings.Add(setting); * } * }*/ settings = Interfaces.Settings.OptionsMerger.LoadStatic(); settings.Dirty += new EventHandler(Settings_Dirty); }
public SettingsInterface() { settings = new SettingsList(); settings.Dirty += new EventHandler(Settings_Dirty); }