public void WriteTemplates(TemplateCollection templates)
 {
     foreach (Template template in templates)
     {
         TemplateXmlNode templateXmlNode = (TemplateXmlNode)((XmlNode)this.CreateElement(RNaihRhYEl0wUmAftnB.aYu7exFQKN(14698)));
         this.DocumentElement.AppendChild((XmlNode)((CommonXmlNode)templateXmlNode));
         templateXmlNode.Template = template;
     }
 }
        public TemplateCollection ReadTemplates()
        {
            TemplateCollection templateCollection = new TemplateCollection();

            foreach (XmlNode xmlNode in (XmlNode)this.DocumentElement)
            {
                TemplateXmlNode templateXmlNode = (TemplateXmlNode)xmlNode;
                templateCollection.Add(templateXmlNode.Template);
            }
            return(templateCollection);
        }