Exemplo n.º 1
0
        public void SetTypeLibrary(TypeLib typeLib)
        {
            TreeNode root = TypeLib2TreeNodeProcessor.GetTypeLibNode(typeLib, m_displayLevel);

            TypeLib2TreeNodeProcessor.SetTlbTreeNodeImage(root);
            this.BeginUpdate();
            this.Nodes.Clear();
            this.Nodes.Add(root);
            root.Expand();
            this.EndUpdate();
        }
Exemplo n.º 2
0
        private void TypeLibraryViewer_Load(object sender, EventArgs e)
        {
            TreeNode root = TypeLib2TreeNodeProcessor.GetDefaultLibNode();

            root.Text = "<double click to open a .tlb file…>";
            TypeLib2TreeNodeProcessor.SetTlbTreeNodeImage(root);
            tlbTreeView.BeginUpdate();
            tlbTreeView.Nodes.Clear();
            tlbTreeView.Nodes.Add(root);
            tlbTreeView.EndUpdate();
        }