protected BrowserTreeNode SearchNode(BrowserTreeNode startNode, String searchName)
 {
     startNode.ExpandNode();
     foreach (ComMemberTreeNode node in startNode.LogicalNodes)
     {
         if (node.MemberInfo.Name.Equals(searchName))
         {
             return(node);
         }
     }
     return(null);
 }
Beispiel #2
0
        // s/b protected, stupid compiler
        internal static BrowserTreeNode FindTypeLib(TypeLibKey libKey, BrowserTreeNode parent)
        {
            BrowserTreeNode typeLibNode = null;

            // Will happen if not COM product
            if (parent == null)
            {
                return(null);
            }
            // Make sure we get all of the children added
            parent.ExpandNode();
            foreach (BrowserTreeNode node in parent.LogicalNodes)
            {
                if (node is ComTypeLibTreeNode)
                {
                    if (((ComTypeLibTreeNode)node).TypeLib.Key.Equals(libKey))
                    {
                        typeLibNode = node;
                        break;
                    }
                }
            }
            return(typeLibNode);
        }