Exemple #1
0
        /// <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;
        }
Exemple #2
0
        /// <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;
        }
Exemple #3
0
        /// <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);
        }
Exemple #4
0
 /// <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
     {
     }
 }
Exemple #5
0
 /// <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
     }
 }