/// <summary> /// Use this class to read XML from strings via <seealso cref="System.IO.StringReader"/>. /// </summary> /// <param name="reader"></param> void IEngine.ReadXML(System.IO.TextReader reader) { var xmlReader = new XMLLayer(); xmlReader.ReadXML(reader, this); IsDirty = false; }
/// <summary> /// Stores option groups and their values in an XML file and sets the /// IsDirty flag to false. /// </summary> /// <param name="fileName"></param> void IEngine.WriteXML(string fileName) { var xmlWriter = new XMLLayer(); xmlWriter.WriteXML(fileName, this); IsDirty = false; }
/// <summary> /// Stores option groups and their values in a string containing XML /// formatted data and sets the IsDirty flag to false. /// </summary> /// <returns></returns> public string WriteXML() { var xmlWriter = new XMLLayer(); string result = xmlWriter.WriteXML(this); IsDirty = false; return(result); }
/// <summary> /// Read option groups and their values from an XML file. /// </summary> /// <param name="fileName"></param> void IEngine.ReadXML(string fileName) { try { var xmlReader = new XMLLayer(); xmlReader.ReadXML(fileName, this); IsDirty = false; } catch { } }
/// <summary> /// Read option groups and their values from an XML file. /// </summary> /// <param name="fileName"></param> void IEngine.ReadXML(string fileName) { try { var xmlReader = new XMLLayer(); xmlReader.ReadXML(fileName, this); IsDirty = false; } catch { // XML error should not crash reading XML } }