예제 #1
0
        public void init(string iniFilePath)
        {
            this.iniFilePath = iniFilePath;
            this.ini         = new IniHelper(iniFilePath);

            Settings.self.load();
        }
예제 #2
0
        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);
        }
예제 #3
0
        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();
        }