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); }
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); }
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); }