示例#1
0
 override public void Remove(Component pComponent)
 {
     Debug.Assert(pComponent != null);
     //DLink.RemoveNode(ref this.poHead, pComponent);
     DLink.RemoveNode(ref this.poHead, ref this.poLast, pComponent);
 }
示例#2
0
 override public void Add(Component pComponent)
 {
     Debug.Assert(pComponent != null);
     DLink.AddToLast(ref this.poHead, ref this.poLast, pComponent);
     pComponent.pParent = this;
 }
        static public Component GetSibling(Component pNode)
        {
            Debug.Assert(pNode != null);

            return((Component)pNode.pNext);
        }
示例#4
0
 public override void Remove(Component pComp)
 {
     Debug.Assert(pComp != null);
     //DLink.RemoveNode(ref this.poHead, pComp);
     DLink.RemoveNode(ref this.poHead, ref this.poTail, pComp);
 }
        // --------------------------------------------------
        //  Helper functions
        // --------------------------------------------------
        static public Component GetParent(Component pNode)
        {
            Debug.Assert(pNode != null);

            return(pNode.pParent);
        }