public void init(string iniFilePath) { this.iniFilePath = iniFilePath; this.ini = new IniHelper(iniFilePath); Settings.self.load(); }
public void save(IniHelper ini) { ini.WriteValue(name, "title", title); string str = slist.Replace("\r\n", ","); int i = 0; while (str.Length > 254) { ini.WriteValue(name, "list" + i++, str.Substring(0, 254)); str = str.Substring(254); } ini.WriteValue(name, "list" + i++, str); }
public void load(IniHelper ini) { this.title = ini.ReadValue(name, "title"); int i = 0; string str = ""; string s = ini.ReadValue(name, "list" + i++); while (s.Length > 0) { str += s; s = ini.ReadValue(name, "list" + i++); } slist = str.Replace(",", "\r\n"); parseList(); }