Beispiel #1
0
        public bool AddNode(ActionListTreeControl_Node node)
        {
            if (this.HeaderNode)
            {
                return(false);
            }
            if (this.Nodes.Count != 0)
            {
                this.GetNode(this.Nodes.Count - 1).mNext = node;
                node.mPrev = this.GetNode(this.Nodes.Count - 1);
            }
            this.Nodes.Add(node);

            node.mParent     = this;
            node.mHeaderNode = false;
            return(true);
        }
Beispiel #2
0
 public ActionListTreeControl_Node(string text, [MarshalAs(UnmanagedType.U1)] bool formattedtext)
 {
     this.mText           = text;
     this.mParent         = null;
     this.mPrev           = null;
     this.mNext           = null;
     this.TextElements    = new ArrayList();
     this.HeaderNodes     = new ArrayList();
     this.Nodes           = new ArrayList();
     this.mExpanded       = false;
     this.mHeaderNode     = false;
     this.mActionIndex    = 0;
     this.mConditionIndex = 0;
     if (formattedtext)
     {
         this.ParseFormattedText();
     }
 }
Beispiel #3
0
        public bool AddHeaderNode(ActionListTreeControl_Node headernode)
        {
            if (this.HeaderNode)
            {
                return(false);
            }
            if (!headernode.Empty)
            {
                return(false);
            }
            if (this.HeaderNodes.Count != 0)
            {
                this.GetHeaderNode(this.HeaderNodes.Count - 1).mNext = headernode;
                headernode.mPrev = this.GetHeaderNode(this.HeaderNodes.Count - 1);
            }
            this.HeaderNodes.Add(headernode);

            headernode.mParent     = this;
            headernode.mHeaderNode = true;
            return(true);
        }