/* Obtain the reference of the absolute root node */ public UITreeViewNode getRootNode() { UITreeViewNode curNode = this; while (curNode.parentNode != null) { curNode = curNode.parentNode; } return(curNode); }
/* Constructor */ public UITreeViewNode(EntityConstants.EntityType eType, string name, UITreeViewNode parent, ContextMenuStrip cms) : base(name) { this.type = eType; this.parentNode = parent; this.ContextMenuStrip = cms; }