コード例 #1
0
        /// <summary>
        /// Constructs the class and initializes the internal tree.
        /// </summary>
        public DistanceCounterCollection()
        {
            Count = 0;
            var startPos = new TreeTableVisibleCounter(0);

            rbTree = new TreeTableWithCounter(startPos, false);
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new <see cref="GenericTreeTableWithCounter{V}"/>.
 /// </summary>
 /// <param name="sorted"></param>
 public GenericTreeTableWithCounter(C startPos, bool sorted)
 {
     thisTree = new TreeTableWithCounter(startPos, sorted)
     {
         Tag = this
     };
 }
コード例 #3
0
 protected virtual void Dispose(bool isDisposing)
 {
     if (isDisposing)
     {
         thisTree.Dispose();
         thisTree = null;
     }
 }