示例#1
0
 public override void Execute(TreeListNode node)
 {
     if (node.HasAsParent(parent))
     {
         base.Execute(node);
     }
 }
示例#2
0
文件: ucMenu.cs 项目: fbluth/Wookie
 public override void Execute(TreeListNode node)
 {
     if (node.HasAsParent(selectedNode))
     {
         this.clientElements.Add((Database.tsysClientElement)node.TreeList.GetDataRecordByNode(node));
     }
 }
示例#3
0
 public override void Execute(TreeListNode node)
 {
     if (!(node == fNode) && node.Expanded && !node.HasAsParent(fNode) && !fNode.HasAsParent(node))
     {
         node.Expanded = false;
     }
 }
示例#4
0
 public override bool CanContinueIteration(TreeListNode node)
 {
     if (isCalculationStart && !node.HasAsParent(parent))
     {
         return(false);
     }
     if (node == parent)
     {
         isCalculationStart = true;
     }
     return(true);
 }
 public override void Execute(TreeListNode node)
 {
     if (node.HasAsParent(_parentNode))
         node.SetValue(_column, _state);
     else
     {
         if (_parentNode.HasAsParent(node))
             if (_state)
                 node[_column] = _state;
             else node[_column] = !_state;
     }
 }
示例#6
0
 TreeListNode HasAsParent(TreeListNode node1, TreeListNode node2)
 {
     if (node1.Level > node2.Level)
     {
         return(node1.HasAsParent(node2) ? node1 : null);
     }
     if (node1.Level < node2.Level)
     {
         return(node2.HasAsParent(node1) ? node2 : null);
     }
     return(null);
 }
示例#7
0
 public override void Execute(TreeListNode node)
 {
     if (node.HasAsParent(parentNode))
     {
         node.SetValue(column, state);
     }
     else
     if (parentNode.HasAsParent(node))
     {
         if (state)
         {
             node[column] = state;
         }
         else
         {
             node[column] = null;
         }
     }
 }
示例#8
0
 public override void Execute(TreeListNode node)
 {
     if (node.HasAsParent(_parentNode))
     {
         node.SetValue(_column, _state);
     }
     else
     {
         if (_parentNode.HasAsParent(node))
         {
             if (_state)
             {
                 node[_column] = _state;
             }
             else
             {
                 node[_column] = !_state;
             }
         }
     }
 }
示例#9
0
 public override bool NeedsVisitChildren(TreeListNode node)
 {
     return(node == parent || node.HasAsParent(parent) || parent.HasAsParent(node));
 }
 public override bool CanContinueIteration(TreeListNode node)
 {
     return !isProcessedNodeVisited || (node == processedNode || node.HasAsParent(processedNode));
 }
 public override bool NeedsVisitChildren(TreeListNode node)
 {
     if (!node.HasChildren) return false;
     return node == processedNode || (node.HasAsParent(processedNode) || processedNode.HasAsParent(node));
 }
 public override void Execute(TreeListNode node)
 {
     if (node.HasAsParent(processedNode) || node == processedNode)
         node.Expanded = false;
 }