Ejemplo n.º 1
0
        public static Component CreateComponent(this XmlDocument dom, LinqComponent component)
        {
            var c = new Component();

            var name = "";

            var comp = component.CreateComponent(ref name);

            var doc = new XmlDocument();

            doc.Load(comp.CreateReader());

            c.Node = doc.DocumentElement;

            c.Name = name;

            ComponentStorage.Instance.Add(c);

            return c;
        }
Ejemplo n.º 2
0
        public static Component CreateComponent(this XmlDocument dom, LinqComponent component)
        {
            var c = new Component();

            var name = "";

            var comp = component.CreateComponent(ref name);

            var doc = new XmlDocument();

            doc.Load(comp.CreateReader());

            c.Node = doc.DocumentElement;

            c.Name = name;

            ComponentStorage.Instance.Add(c);

            return(c);
        }