Exemple #1
0
        public XElement ReadContentFromObject(ModuleStore obj)
        {
            XElement content = new XElement("ModuleStore");

            XmlRootAttributeVersion.SetVersion(content, ObjectVersion.ModuleStore);
            XmlModuleStoreFilePolicy xmlFilePolicy = new XmlModuleStoreFilePolicy(obj, content);

            xmlFilePolicy.Write();
            return(content);
        }
        public void WriteContentToObject(XElement content, ModuleStore obj)
        {
            XmlModuleStoreFilePolicy xmlFilePolicy = new XmlModuleStoreFilePolicy(obj, content);

            xmlFilePolicy.Read();
        }