Esempio n. 1
0
        public override void Print()
        {
            Console.Write("\n" + GetName());
            Console.WriteLine(", " + GetDescription());
            Console.WriteLine("---------------------");

            IEnumerator iterator = menuComponents.GetEnumerator();

            while (iterator.MoveNext())
            {
                MenuComponent menuComponent = (MenuComponent)iterator.Current;
                menuComponent.Print();
            }
        }
Esempio n. 2
0
 public void PrintMenu()
 {
     allMenus.Print();
 }