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

            IEnumerator <MenuComponent> iterator = menuComponents.GetEnumerator();

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