Пример #1
0
        /// <summary>
        /// Writes the children.
        /// </summary>
        /// <param name="writer">
        /// The writer.
        /// </param>
        protected override void WriteChildren(XmlWriter writer)
        {
            if (!this.RessourceCheck)
            {
                var node = new RessourcesNodeXmlBuilder(this._editInfo);
                node.Write(writer);
            }

            if (!this.GroupsCheck)
            {
                var gnode = new GroupsNodeXmlBuilder(this._editInfo);
                gnode.Write(writer);
            }
        }
Пример #2
0
        /// <summary>
        /// Updates the children.
        /// </summary>
        /// <param name="reader">
        /// The reader.
        /// </param>
        /// <param name="writer">
        /// The writer.
        /// </param>
        protected override void UpdateChildren(XmlReader reader, XmlWriter writer)
        {
            do
            {
                if (reader.LocalName == XD.ELEMENT_RESSOURCES)
                {
                    var node = new RessourcesNodeXmlBuilder(this._editInfo);
                    node.Update(reader, writer);
                    this.RessourceCheck = true;
                }

                if (reader.LocalName == XD.ELEMENT_GROUPS)
                {
                    var node = new GroupsNodeXmlBuilder(this._editInfo);
                    node.Update(reader, writer);
                    this.GroupsCheck = true;
                }
                XmlBuilderTool.ReadAndWriteToNextStartOrEndElement(reader, writer);
            }while (!reader.EOF);

            this.WriteChildren(writer);
        }