예제 #1
0
        protected override void WriteSetup(XmlElement setup, XmlDocument doc)
        {
            XmlElement element;

            element = doc.CreateElement("SaveDirectory");
            element.AppendChild(doc.CreateTextNode(SaveDirectory));
            setup.AppendChild(element);

            element = doc.CreateElement("IsTMod");
            element.AppendChild(doc.CreateTextNode(IsTMod.ToString()));
            setup.AppendChild(element);
        }
예제 #2
0
        protected override void WriteSetup(XmlElement setup, XmlDocument doc)
        {
            XmlElement element;

            if (!string.IsNullOrWhiteSpace(Arguments))
            {
                element = doc.CreateElement("Arguments");
                element.AppendChild(doc.CreateTextNode(Arguments));
                setup.AppendChild(element);
            }

            if (!string.IsNullOrWhiteSpace(WorldDirectory))
            {
                element = doc.CreateElement("WorldDirectory");
                element.AppendChild(doc.CreateTextNode(WorldDirectory));
                setup.AppendChild(element);
            }

            element = doc.CreateElement("IsTMod");
            element.AppendChild(doc.CreateTextNode(IsTMod.ToString()));
            setup.AppendChild(element);
        }