Example #1
0
File: Form1.cs Project: FtMan/ES
        void load_facts()
        {
            var xmlSerializer = new XmlSerializer(typeof(Fact_collection));

            XmlReaderSettings settings = new XmlReaderSettings();

            settings.Async = true;

            FileStream fileStream = new FileStream(PathOfLoad + '/' + "facts_xml.xml", FileMode.Open); //Было FileStream fileStream = new FileStream("facts_xml.xml", FileMode.Open); Радмир
            var        xmlReader  = XmlReader.Create(fileStream, settings);

            facts_xml_serialize = (Fact_collection)xmlSerializer.Deserialize(xmlReader);
            facts = facts_xml_serialize.facts;

            fileStream.Close();
            xmlReader.Close();
        }
Example #2
0
File: Form1.cs Project: FtMan/ES
 void init_save_module()
 {
     nodes_xml_serialize     = new Node_collection();
     facts_xml_serialize     = new Fact_collection();
     questions_xml_serialize = new Question_collection();
 }