/// <summary>
            /// Initializes a new instance of the <see cref="NestedTreeTableVisibleCounterSource"/> class.
            /// </summary>
            /// <param name="parentDistances">The parent distances.</param>
            /// <param name="nestedDistances">The nested distances.</param>
            public NestedTreeTableVisibleCounterSource(IDistanceCounterCollection parentDistances, IDistanceCounterCollection nestedDistances)
                : base(0)
            {
                this.parentDistances = parentDistances;
                this.nestedDistances = nestedDistances;

                nestedDistances.ConnectWithParent(this);
            }
예제 #2
0
            /// <summary>
            /// Initializes a new instance of the <see cref="NestedDistanceCounterCollectionSource"/> class.
            /// </summary>
            /// <param name="parentDistances">The parent distances.</param>
            /// <param name="nestedDistances">The nested distances.</param>
            /// <param name="entry">The entry.</param>
            public NestedDistanceCounterCollectionSource(IDistanceCounterCollection parentDistances, IDistanceCounterCollection nestedDistances, DistanceLineCounterEntry entry)
                : base(0, 1)
            {
                this.parentDistances = parentDistances;
                this.nestedDistances = nestedDistances;
                this.entry           = entry;

                if (nestedDistances != null)
                {
                    nestedDistances.ConnectWithParent(this);
                }
            }