public bool Save() { const string file = "magickms.cfg"; Uc.Properties prop = new Uc.Properties(); prop.Load(file); prop.Save("magickms.cfg"); return true; }
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); } }