Exemplo n.º 1
0
        public bool TestWebConfigViewModal()
        {
            Console.WriteLine("TestWebConfigViewModal");

            XmlConfigurationHotfix update = new XmlConfigurationHotfix();

            update.objXMLContentFixes = new XmlContentFix[1];
            XmlContentFix[] xmlFixes = update.objXMLContentFixes;

            xmlFixes[0]                        = new XmlContentFix();
            xmlFixes[0].description            = "Add openModal=\"true\" attribute to View nodes";
            xmlFixes[0].objContentFixAttribute =
                new ContentFixAttribute(
                    new Utilities.Hotfix.Xml.Attribute[]
            {
                new Utilities.Hotfix.Xml.Attribute(
                    @"/configuration/uipConfiguration/views/view",
                    "openModal",
                    "true")
            },
                    null,
                    null,
                    null);

            xmlFixes[0].contentXmlFilePath = @"D:\Tech\5.2\\.W2.Web.Application\Web.config";
            update.Save(@"c:\.Web.config.openModal.xml");
            update.Install(log);


            return(true);
        }