Exemple #1
0
        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

            }
        }
Exemple #2
0
 public Profile()
 {
     simpleParams = new Dictionary<string, string>();
     currentXML = new SokoSolveProfile();
 }