public void LoadPorts(XmlNode node)
        {
            object      v;
            XmlNodeList nds = node.SelectNodes(XmlSerialization.XML_PORT);
            List <LinkLineNodeOutPort> outports = new List <LinkLineNodeOutPort>();

            if (nds != null)
            {
                IXmlCodeReader r = GetReader();
                foreach (XmlNode nd in nds)
                {
                    v = XmlSerialization.ReadFromXmlNode(r, nd, this);
                    if (v != null)
                    {
                        if (v is LinkLineNodeInPort)
                        {
                            InPort = (LinkLineNodeInPort)v;
                        }
                        else if (v is LinkLineNodeOutPort)
                        {
                            outports.Add((LinkLineNodeOutPort)v);
                        }
                    }
                }
            }
            LinkLineNodeOutPort[] o = new LinkLineNodeOutPort[outports.Count];
            outports.CopyTo(o);
            OutPorts = o;
        }
        public void LoadGroupFromXmlNode(XmlNode node)
        {
            MathExpGroup g = (MathExpGroup)XmlSerialization.ReadFromXmlNode(_reader, node);

            this.LoadGroup(g);
        }