Ejemplo n.º 1
0
        public void ToXml(System.Xml.XmlNode parentNode)
        {
            var node = parentNode.AddElement("Switch");

            node.SetAttribute("button", (Button - 1).ToString());
            node.SetAttribute("offText", IfFalseSayText);
            IfFalseMappings.ToXml(node.AddElement("Off"));
            node.SetAttribute("onText", IfTrueSayText);
            IfTrueMappings.ToXml(node.AddElement("On"));
        }
Ejemplo n.º 2
0
        public void ToXml(System.Xml.XmlNode parentNode)
        {
            var node = parentNode.AddElement(TagName);

            node.SetAttribute("joystick", Joystick);
            node.SetAttribute("button", (Button - 1).ToString());
            node.SetAttribute("deactivatedText", IfFalseSayText);
            IfFalseMappings.ToXml(node.AddElement("Deactivated"));
            node.SetAttribute("activatedText", IfTrueSayText);
            IfTrueMappings.ToXml(node.AddElement("Activated"));
        }