コード例 #1
0
ファイル: Program.cs プロジェクト: coolwill/AutoAtForQQ
        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);
        }
コード例 #2
0
ファイル: Program.cs プロジェクト: coolwill/AutoAtForQQ
        public void save()
        {
            File.Delete(iniFilePath);

            ini.WriteValue("Main", "prefix", prefix + "");
            ini.WriteValue("Main", "random", random + "");
            ini.WriteValue("Main", "count", count + "");
            ini.WriteValue("Main", "autoSend", autoSend + "");
            ini.WriteValue("Main", "shuffle", shuffle + "");

            string profiles_str = "";

            foreach (Profile profile in profiles)
            {
                profiles_str += profile.name + ",";
                profile.save(ini);
            }

            profiles_str = profiles_str.Remove(profiles_str.Length - 1);
            ini.WriteValue("Main", "profiles", profiles_str);
        }