示例#1
0
 static void Main(string[] args)
 {
     try
     {
         VendingMachine machine = new VendingMachine();
         VMCLI          startUp = new VMCLI(machine);
         startUp.MainMenu();
     }
     catch (InvalidInventoryException ex)
     {
         Console.WriteLine(ex.Message);
         Console.WriteLine("Unable to create the machine object");
         Console.WriteLine("The program will now close...");
         Console.ReadKey();
     }
 }
示例#2
0
        static void Main(string[] args)
        {
            VMCLI startUp = new VMCLI();

            startUp.MainMenu();
        }