Ejemplo n.º 1
0
        public static BComponent GetComponent(BComponent parent, Behaviors behaviorManager, XmlNode xmlDoc)
        {
            BComponent current = null;

            foreach (XmlNode x in xmlDoc)
            {
                current = Behaviors.BuildComponent(x, parent, behaviorManager);
                if (current != null)
                {
                    return(current);
                }
            }
            return(null);
        }
Ejemplo n.º 2
0
        public static BComponent[] GetComponents(BComponent parent, Behaviors behaviorManager, XmlNode xmlDoc)
        {
            List <BComponent> components = new List <BComponent>();
            BComponent        current    = null;

            foreach (XmlNode x in xmlDoc)
            {
                current = Behaviors.BuildComponent(x, parent, behaviorManager);
                if (current != null)
                {
                    components.Add(current);
                }
            }
            return(components.ToArray());
        }