Example #1
0
 public void FinalizePurchase(double price, double amount, int selection, int purchaseQuantity, string purchaseName)
 {
     if (Iy.MoneyValidator(price) == true)
     {
         iy.AddToInventory(purchaseName, amount);
         iy.PayForItem(purchaseName, se.Stock[selection - 1].Price, purchaseQuantity);
     }
     else
     {
         Console.WriteLine("Not enough money to complete transaction");
         BuyItem(selection);
     }
 }