/// <summary>
        /// Prints the tree onto the console. Uses the .ToString() for printing out object info
        /// </summary>
        /// <param name="tree">A node in the tree</param>
        /// <param name="tabs">The number of tabs to offset the println()</param>
        private void Show(string tabs)
        {
            if (IsEmpty)
            {
                Console.WriteLine(tabs + " --NULL [" + color + "]");
                return;
            }

            Console.WriteLine(tabs + " -" + Content.ToString() + " [" + color + "]");
            leftTree.Show(tabs + "  ");
            rightTree.Show(tabs + "  ");
        }
Beispiel #2
0
 /// <summary>
 /// Display the timetable in the console
 /// </summary>
 public void Show()
 {
     collection.Show();
 }