Ejemplo n.º 1
0
        static void Main(string[] args)
        {
            Console.SetWindowSize(Console.LargestWindowWidth, Console.LargestWindowHeight);
            ShowWindow(ThisConsole, MAXIMIZE);
            VMFileReader stockInventory = new VMFileReader("vendingmachine.csv");
            Dictionary <string, List <VMItem> > inventory = stockInventory.GetInventory();
            VendingMachine vm       = new VendingMachine(inventory);
            VMCLI          mainmenu = new VMCLI(vm);

            mainmenu.Display();
        }
 public void Initialize()
 {
     stockInventory = new VMFileReader("vendingmachine.csv");
     inventory      = stockInventory.GetInventory();
     vend           = new VendingMachine(inventory);
 }