public static void MixLemonadeMenu(string name, double wallet, Supplies suppliesList, int amtLemon, int amtSugar, int amtIce, double price, int numPitchers, string mixName, string message) { int supplyOffset; if (numPitchers == 0) { supplyOffset = 1; } else { supplyOffset = numPitchers; } Console.Clear(); Console.WriteLine($"╔═════════════════════════════════════════════╗"); Console.WriteLine($"║ MIX LEMONADE PITCHERS ║"); Console.WriteLine($"║ ║"); Console.WriteLine("║ Manager: {0,-12} ${1,-10} ║", name, wallet.ToString("0.00")); Console.WriteLine($"║ ║"); Console.WriteLine($"║ Current Supplies: ║ "); Console.WriteLine("║ Lemons : {0,-5} ║", suppliesList.MyLemons.Count - (amtLemon * supplyOffset)); Console.WriteLine("║ Cups of Sugar : {0,-5} ║", suppliesList.MySugar.Count - (amtSugar * supplyOffset)); Console.WriteLine("║ Ice Cubes : {0,-5} ║", suppliesList.MyIce.Count - (amtIce * supplyOffset)); Console.WriteLine("║ Pitchers : {0,-5} ║", suppliesList.MyLemonadePitchers + numPitchers); Console.WriteLine($"╠═════════════════════════════════════════════╣"); Console.WriteLine($"║ Per Pitcher ║"); Console.WriteLine("║ 1. Add Lemons {0,-5} ║", amtLemon); Console.WriteLine("║ 2. Add Cups of Sugar {0,-5} ║", amtSugar); Console.WriteLine("║ 3. Add Ice Cubes {0,-5} ║", amtIce); Console.WriteLine($"║ ║"); Console.WriteLine($"║ Mixture: ║"); Console.WriteLine("║ 4. Number of Pitchers {0,-5} ║", numPitchers); Console.WriteLine("║ 5. Set Price ${0,-6} ║", price.ToString("0.00")); Console.WriteLine("║ 6. Set Mix Name - {0,-15} ║", mixName); Console.WriteLine("║ 7. Make This Mix ║"); Console.WriteLine("║ 8. Leave Without Making Mix ║"); Console.WriteLine("║ 9. Done ║"); Console.WriteLine($"╠════════════════════════════════════════════╝"); Console.WriteLine($"║ {message} "); Console.WriteLine($"╚════════════════════════════════════════════"); }
public static void PurchaseSuppliesMenu(string name, double wallet, Supplies suppliesList, Supplier vendor, string message) { Console.Clear(); Console.WriteLine($"╔═══════════════════════════════════════════════╗"); Console.WriteLine($"║ PURCHASE SUPPLIES ║"); Console.WriteLine($"║ ║"); Console.WriteLine("║ Manager: {0,-12} ${1,-10} ║", name, wallet.ToString("0.00")); Console.WriteLine($"║ ║"); Console.WriteLine($"║ Current Supplies: ║"); Console.WriteLine("║ Lemons : {0,-5} ║", suppliesList.MyLemons.Count); Console.WriteLine("║ Cups of Sugar : {0,-5} ║", suppliesList.MySugar.Count); Console.WriteLine("║ Ice Cubes : {0,-5} ║", suppliesList.MyIce.Count); Console.WriteLine($"╠═══════════════════════════════════════════════╣"); Console.WriteLine($"║ Current Price ║"); Console.WriteLine("║ 1. Add Lemons ${0,-5} ║", vendor.GetPrice("Lemon").ToString("0.00")); Console.WriteLine("║ 2. Add Cups of Sugar ${0,-5} ║", vendor.GetPrice("Sugar").ToString("0.00")); Console.WriteLine("║ 3. Add Ice Cubes ${0,-5} ║", vendor.GetPrice("Ice").ToString("0.00")); Console.WriteLine("║ 4. Done ║"); Console.WriteLine($"╠═══════════════════════════════════════════════╝"); Console.WriteLine($"║ {message} "); Console.WriteLine($"╚═══════════════════════════════════════════════"); }