예제 #1
0
        public void SetB(PSimple node)
        {
            if(_b_ != null)
            {
            _b_.Parent(null);
            }

            if(node != null)
            {
            if(node.Parent() != null)
            {
                node.Parent().RemoveChild(node);
            }

            node.Parent(this);
            }

            _b_ = node;
        }
예제 #2
0
        public void SetSimple(PSimple node)
        {
            if(_simple_ != null)
            {
            _simple_.Parent(null);
            }

            if(node != null)
            {
            if(node.Parent() != null)
            {
                node.Parent().RemoveChild(node);
            }

            node.Parent(this);
            }

            _simple_ = node;
        }