Пример #1
0
        static void Main(string[] args)
        {
            List <NumWithList> numList = NumWithList.GenerateInitialList(100, 5, 2, new Random());
            DisplayController  a       = new DisplayController(numList);

            a.StartConsoleDialog();
        }
Пример #2
0
        public void Print(string name)
        {
            //Insert tab indents based on depth
            for (int i = 0; i < depth; i++)
            {
                Console.Write("\t");
            }
            Console.WriteLine($"- Item {name} {Value}");

            //If this has a list, print that list as well
            if (List.Count != 0)
            {
                for (int i = 0; i < List.Count; i++)
                {
                    List[i].Print(name + DisplayController.SwitchNumAndChar(i));
                }
            }
        }