Exemplo n.º 1
0
        internal static void RegisterRegistryAction(string key)
        {
            XmlElement action = script.CreateElement("registry");

            RootElement.AppendChild(action);
            action.SetAttribute("key", key);
        }
Exemplo n.º 2
0
        internal static void RegisterDirectoryAction(string path)
        {
            XmlElement action = script.CreateElement("directory");

            RootElement.AppendChild(action);
            action.SetAttribute("path", path);
        }
Exemplo n.º 3
0
        internal static void RegisterStopIIS7ApplicationPool(string name)
        {
            XmlElement action = script.CreateElement("stopIIS7ApplicationPool");

            RootElement.AppendChild(action);
            action.SetAttribute("name", name);
        }
Exemplo n.º 4
0
        internal static void RegisterIIS7WebSiteAction(string siteId)
        {
            XmlElement action = script.CreateElement("IIS7WebSite");

            RootElement.AppendChild(action);
            action.SetAttribute("siteId", siteId);
        }
Exemplo n.º 5
0
        internal static void RegisterDatabaseAction(string connectionString, string name)
        {
            XmlElement action = script.CreateElement("database");

            RootElement.AppendChild(action);
            action.SetAttribute("connectionString", connectionString);
            action.SetAttribute("name", name);
        }
Exemplo n.º 6
0
        internal static void RegisterDirectoryBackupAction(string source, string destination)
        {
            XmlElement action = script.CreateElement("directoryBackup");

            RootElement.AppendChild(action);
            action.SetAttribute("source", source);
            action.SetAttribute("destination", destination);
        }
Exemplo n.º 7
0
        internal static void RegisterWindowsService(string path, string name)
        {
            XmlElement action = script.CreateElement("WindowsService");

            RootElement.AppendChild(action);
            action.SetAttribute("path", path);
            action.SetAttribute("name", name);
        }
Exemplo n.º 8
0
        internal static void RegisterConfigAction(string componentId, string name)
        {
            XmlElement action = script.CreateElement("config");

            RootElement.AppendChild(action);
            action.SetAttribute("key", componentId);
            action.SetAttribute("name", name);
        }
Exemplo n.º 9
0
        internal static void RegisterUserAccountAction(string domain, string userName)
        {
            XmlElement action = script.CreateElement("userAccount");

            RootElement.AppendChild(action);
            action.SetAttribute("name", userName);
            action.SetAttribute("domain", domain);
        }
Exemplo n.º 10
0
        internal static void RegisterVirtualDirectoryAction(string siteId, string name)
        {
            XmlElement action = script.CreateElement("virtualDirectory");

            RootElement.AppendChild(action);
            action.SetAttribute("siteId", siteId);
            action.SetAttribute("name", name);
        }
Exemplo n.º 11
0
        internal static void RegisterDatabaseBackupAction(string connectionString, string name, string bakFile, string position)
        {
            XmlElement action = script.CreateElement("databaseBackup");

            RootElement.AppendChild(action);
            action.SetAttribute("connectionString", connectionString);
            action.SetAttribute("name", name);
            action.SetAttribute("bakFile", bakFile);
            action.SetAttribute("position", position);
        }
Exemplo n.º 12
0
        protected override void SetTitle(String value)
        {
            var title = RootElement.FindChild <ISvgTitleElement>();

            if (title == null)
            {
                title = new SvgTitleElement(this);
                RootElement.AppendChild(title);
            }

            title.TextContent = value;
        }
Exemplo n.º 13
0
        public UEResXWriter(string InPath)
        {
            Filename = InPath;
            Document = new XmlDocument();
            Document.AppendChild(Document.CreateXmlDeclaration("1.0", "utf-8", null));
            RootElement = Document.CreateElement("root");
            Document.AppendChild(RootElement);

            RootElement.AppendChild(CreateEntry("resheader", "resmimetype", "text/microsoft-resx", null));
            RootElement.AppendChild(CreateEntry("resheader", "version", "2.0", null));
            RootElement.AppendChild(CreateEntry("resheader", "reader", typeof(UEResXReader).AssemblyQualifiedName, null));
            RootElement.AppendChild(CreateEntry("resheader", "writer", typeof(UEResXWriter).AssemblyQualifiedName, null));
        }
Exemplo n.º 14
0
        protected CellView(HtmlDocument document, string cssClass)
        {
            if (document == null)
            {
                throw new ArgumentNullException(nameof(document));
            }

            Document = document;

            RootElement    = Document.CreateElement("article", cssClass);
            ContentElement = Document.CreateElement("section");
            FooterElement  = Document.CreateElement("footer");

            RootElement.AppendChild(ContentElement);
            RootElement.AppendChild(FooterElement);
        }
Exemplo n.º 15
0
 public void AddResource(string InName, string InValue)
 {
     RootElement.AppendChild(CreateEntry("data", InName, InValue, "preserve"));
 }