示例#1
0
文件: UserModel.cs 项目: burstas/rmps
        public bool Save()
        {
            const string file = "magickms.cfg";

            Uc.Properties prop = new Uc.Properties();
            prop.Load(file);
            prop.Save("magickms.cfg");
            return true;
        }
示例#2
0
文件: UserModel.cs 项目: burstas/rmps
        public override void Load()
        {
            DataModel = new DataModel(this);

            const string file = "magickms.cfg";
            if (!File.Exists(file))
            {
                return;
            }

            Uc.Properties prop = new Uc.Properties();
            prop.Load(file);

            string solHash = prop.Get("sln.hash", "");
            if (CharUtil.IsValidateHash(solHash))
            {
                Solution = DataModel.ReadSolution(solHash);
            }
        }