Exemplo n.º 1
0
 /// <summary>
 /// Creates the viewport command from the XML stream.
 /// </summary>
 public ThemeViewport(XmlReader xml)
 {
     x = new ThemeSingle(xml["x"]);
     y = new ThemeSingle(xml["y"]);
     w = new ThemeSingle(xml["w"]);
     h = new ThemeSingle(xml["h"]);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Creates the string command from the XML stream.
        /// </summary>
        public ThemeString(XmlReader xml)
        {
            // Get the coordinates
            x = new ThemeSingle(xml["x"]);
            y = new ThemeSingle(xml["y"]);
            fontName = xml["font"];
            text = xml["text"];
            format = xml["format"];
            color = new ThemeColor(xml["color"]);

            // See if we have fields
            if (!String.IsNullOrEmpty(xml["variables"]))
            {
                // Parse it for the format string
                string vars = xml["variables"].Replace(" ", "");
                variables = vars.Split(',');
            }
        }