/// <summary> /// Returns the total of this node's counter and child nodes. /// </summary> public ITreeTableCounter GetCounterTotal() { if (counter == null) { ITreeTableCounterSource source = GetCounterSource(); if (source != null) { counter = source.GetCounter(); } } return(counter); }
/// <summary> /// Marks all summaries dirty in this node and child nodes. /// </summary> /// <param name="notifyCounterSource">if set to <c>true</c> notify counter source.</param> public void InvalidateCounterTopDown(bool notifyCounterSource) { counter = null; if (notifyCounterSource) { ITreeTableCounterSource source = GetCounterSource(); if (notifyCounterSource && source != null) { source.InvalidateCounterTopDown(notifyCounterSource); } } }
/// <summary> /// Connects a nested distance collection with a parent. /// </summary> /// <param name="nestedTreeTableVisibleCounterSource">The nested tree table visible counter source.</param> public void ConnectWithParent(ITreeTableCounterSource nestedTreeTableVisibleCounterSource) { rbTree.Tag = nestedTreeTableVisibleCounterSource; }
/// <summary> /// Connects a nested distance collection with a parent. /// </summary> /// <param name="treeTableCounterSource">The nested tree table visible counter source.</param> public void ConnectWithParent(ITreeTableCounterSource treeTableCounterSource) { rbTree.Tag = treeTableCounterSource; }
/// <summary> /// This method is not supported for DistanceCounterSubset. /// </summary> /// <param name="treeTableCounterSource">The nested tree table visible counter source.</param> public void ConnectWithParent(ITreeTableCounterSource treeTableCounterSource) { throw new NotSupportedException("Do not use DistanceCounterSubset as nested collection!"); }