Esempio n. 1
0
        public void Parse(XmlNode node)
        {
            foreach (XmlAttribute a in node.Attributes)
            {
                if (a.Name.ToLower() == "type")
                {
                    type = a.Value;
                }
                else if (a.Name.ToLower() == "name")
                {
                    name = a.Value;
                }
            }

            Type renderType = null;

            if (_guidMap.TryGetValue(type, out renderType))
            {
                RenderData = (TCNRenderBase)renderType.GetConstructors()[0].Invoke(null);
                RenderData.Parse(node);
            }
        }
Esempio n. 2
0
        public void Parse(XmlNode node)
        {
            foreach (XmlAttribute a in node.Attributes)
            {
                if (a.Name.ToLower() == "type")
                    type = a.Value;
                else if (a.Name.ToLower() == "name")
                    name = a.Value;
            }

            Type renderType = null;

            if (_guidMap.TryGetValue(type, out renderType))
            {
                RenderData = (TCNRenderBase)renderType.GetConstructors()[0].Invoke(null);
                RenderData.Parse(node);
            }
        }