Exemple #1
0
        public static NodeBean findNodeById(string j)
        {
            NodeBean nbean = null;

            foreach (GroupBean gbean in groups)
            {
                nbean = XmlMapping.findNodeBeanById(j, gbean);
                if (nbean != null)
                {
                    break;
                }
            }
            return(nbean);
        }
Exemple #2
0
        private void getLinks(NetworkBean network, XmlNode networkNode)
        {
            XmlNodeList xmlNodeList = getChildern(networkNode);

            foreach (XmlNode node in xmlNodeList)
            {
                LinkBean link   = new LinkBean();
                string   target = getNodeAttrValue(node, AttrType.Target);
                string   source = getNodeAttrValue(node, AttrType.Source);
                link.target = XmlMapping.findNodeBeanById(target, network.group2);
                link.source = XmlMapping.findNodeBeanById(source, network.group1);

                network.llb.Add(link);
            }
        }