void load_nodes() { var xmlSerializer = new XmlSerializer(typeof(Node_collection)); XmlReaderSettings settings = new XmlReaderSettings(); settings.Async = true; FileStream fileStream = new FileStream(PathOfLoad + '/' + "nodes_xml.xml", FileMode.Open); //Было FileStream fileStream = new FileStream("nodes_xml.xml", FileMode.Open); Радмир var xmlReader = XmlReader.Create(fileStream, settings); nodes_xml_serialize = (Node_collection)xmlSerializer.Deserialize(xmlReader); nodes = nodes_xml_serialize.nodes; fileStream.Close(); xmlReader.Close(); }
void init_save_module() { nodes_xml_serialize = new Node_collection(); facts_xml_serialize = new Fact_collection(); questions_xml_serialize = new Question_collection(); }