public override void Execute(TreeListNode node) { if (node.HasAsParent(parent)) { base.Execute(node); } }
public override void Execute(TreeListNode node) { if (node.HasAsParent(selectedNode)) { this.clientElements.Add((Database.tsysClientElement)node.TreeList.GetDataRecordByNode(node)); } }
public override void Execute(TreeListNode node) { if (!(node == fNode) && node.Expanded && !node.HasAsParent(fNode) && !fNode.HasAsParent(node)) { node.Expanded = false; } }
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; } }
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); }
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; } } }
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; } } } }
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; }