public void Load(string FileName) { using (FileStream stream = File.OpenRead(FileName)) { XmlSerializer ser = new XmlSerializer(typeof(SokoSolveProfile)); currentXML = (SokoSolveProfile) ser.Deserialize(stream); // Init this clas with the xml proxy // General Settings simpleParams.Clear(); foreach (SokoSolveProfileSetting setting in currentXML.GeneralSettings) { simpleParams.Add(setting.Name, setting.Value); } // Libraries // TODO // History // TODO } }
public Profile() { simpleParams = new Dictionary<string, string>(); currentXML = new SokoSolveProfile(); }