//public bool LoadOldModel(string xmlInputFileName) //{ // XmlReaderSettings settings = new XmlReaderSettings(); // settings.IgnoreComments = true; // settings.IgnoreProcessingInstructions = true; // settings.IgnoreWhitespace = true; // XmlReader reader = XmlReader.Create(xmlInputFileName, settings); // LegacyReader.RecursivelyReadBlock(reader, _assemblies); // reader.Close(); // return true; //} public bool LoadModel(string xmlInputFileName, ModelReaderOptions options) { XmlReaderSettings settings = new XmlReaderSettings(); settings.IgnoreComments = true; settings.IgnoreProcessingInstructions = true; settings.IgnoreWhitespace = true; XmlReader reader = XmlReader.Create(xmlInputFileName, settings); ThinReader modelReader = new ThinReader(this, options); modelReader.RecursivelyReadBlock(reader, this, true); reader.Dispose(); return true; }
public ThinReader(ThinModel thinModel, ModelReaderOptions options) { _thinModel = thinModel; _options = options; }