private void ReadModuleDefinitions(XmlReader reader)
 {
     reader.ReadStartElement("moduleDefinitions");
     do
     {
         reader.ReadStartElement("moduleDefinition");
         ModuleDefinitionInfo moduleDefinition = new ModuleDefinitionInfo();
         moduleDefinition.ReadXml(reader);
         ModuleDefinitions.Add(moduleDefinition.FriendlyName, moduleDefinition);
     } while (reader.ReadToNextSibling("moduleDefinition"));
 }
Beispiel #2
0
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// Reads a Module Definitions from an XmlReader
        /// </summary>
        /// <param name="reader">The XmlReader to use</param>
        /// <history>
        ///     [cnurse]	01/17/2008   Created
        /// </history>
        /// -----------------------------------------------------------------------------
        private void ReadModuleDefinitions(XmlReader reader)
        {
            reader.ReadStartElement("moduleDefinitions");
            do
            {
                reader.ReadStartElement("moduleDefinition");

                //Create new ModuleDefinition object
                var moduleDefinition = new ModuleDefinitionInfo();

                //Load it from the Xml
                moduleDefinition.ReadXml(reader);

                //Add to the collection
                ModuleDefinitions.Add(moduleDefinition.FriendlyName, moduleDefinition);
            } while (reader.ReadToNextSibling("moduleDefinition"));
        }