Пример #1
0
 static void Main(string[] args)
 {
     try
     {
         VendingMenus menu = new VendingMenus(new VendingMachine());
         menu.MainMenu();
     }
     catch (InventoryException)
     {
         Console.WriteLine("Inventory file is corrupt.");
         Console.ReadKey();
     }
     catch (Exception ex)
     {
         Console.WriteLine(ex.Message);
         Console.WriteLine(ex.StackTrace);
         Console.ReadKey();
     }
 }
Пример #2
0
        static void Main(string[] args)
        {
            VendingMenus vMenu = new VendingMenus(new VendingMachine());

            vMenu.MainMenu();
        }