Esempio n. 1
0
        private void ParseCompoundByNodeName(XmlNode _node, Compound _parent, string _name)
        {
            foreach (XmlNode node in _node.SelectNodes(_name))
            {
                string type = node.Attributes["kind"].Value;
                if (!IsTypeIgnored(type))
                {
                    var compound = mFatory.CreateCompound(type);
                    if (compound != null)
                    {
                        compound.Initialise(node);

                        if (!IsNameIgnored(compound.Name))
                        {
                            RegisterCompound(compound);

                            _parent.AddChild(compound);

                            InitialiseCompounds(node, compound);
                        }
                        else
                        {
                            AddToIgnoredList(compound);
                        }
                    }
                }
            }
        }
Esempio n. 2
0
        private void ParseCompoundByNodeName(XmlNode _node, Compound _parent, string _name)
        {
            foreach (XmlNode node in _node.SelectNodes(_name))
            {
                string type = node.Attributes["kind"].Value;
                if (!IsTypeIgnored(type))
                {
                    var compound = mFatory.CreateCompound(type);
                    if (compound != null)
                    {
                        compound.Initialise(node);

                        if (!IsNameIgnored(compound.Name))
                        {
                            RegisterCompound(compound);

                            _parent.AddChild(compound);

                            InitialiseCompounds(node, compound);
                        }
                        else
                        {
                            AddToIgnoredList(compound);
                        }
                    }
                }
            }
        }