示例#1
0
 public virtual void Insert(int index, TOCTreeNode node)
 {
     if (this.m_pNode != null)
     {
         node.SetParent(this.m_pNode);
         node.SetTreeView(this.m_pNode.TreeView);
     }
     else
     {
         node.SetTreeView(this.m_pTreeView);
     }
     this.m_pTOCTreeNodeCollection.Insert(index, node);
 }
示例#2
0
 public virtual int Add(TOCTreeNode pNode)
 {
     if (this.m_pNode != null)
     {
         pNode.SetParent(this.m_pNode);
         pNode.SetTreeView(this.m_pNode.TreeView);
     }
     else
     {
         pNode.SetTreeView(this.m_pTreeView);
     }
     return(this.m_pTOCTreeNodeCollection.Add(pNode));
 }
示例#3
0
        public virtual TOCTreeNode Add(string name)
        {
            TOCTreeNode node = new TOCTreeNode(name);

            if (this.m_pNode != null)
            {
                node.SetParent(this.m_pNode);
                node.SetTreeView(this.m_pNode.TreeView);
            }
            else
            {
                node.SetTreeView(this.m_pTreeView);
            }
            this.m_pTOCTreeNodeCollection.Add(node);
            return(node);
        }