Beispiel #1
0
        //添加叶子节点
        public FoldoutNode AddNode(string folderName, string text, FoldoutNode.DelegateMethod callback)
        {
            FoldoutNode node = new FoldoutNode(text, callback);

            node.folderName = folderName;
            this.Nodes.Add(node);
            node.Depth = this.Depth + 1;
            return(node);
        }
Beispiel #2
0
 public void SelectNodeCallback(FoldoutNode node)
 {
     node.Select = true;
     if (mCurNode != null && mCurNode != node)
     {
         mCurNode.Select = false;
         mCurNode        = null;
     }
     mCurNode = node;
 }