Exemplo n.º 1
0
        public bool Save()
        {
            const string file = "magickms.cfg";

            Uc.Properties prop = new Uc.Properties();
            prop.Load(file);
            prop.Save("magickms.cfg");
            return true;
        }
Exemplo n.º 2
0
        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);
            }
        }