コード例 #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();
        }
コード例 #2
0
 public void Initialize()
 {
     stockInventory = new VMFileReader("vendingmachine.csv");
     inventory      = stockInventory.GetInventory();
     vend           = new VendingMachine(inventory);
 }