示例#1
0
 public int SetLemonadePrice()
 {
     UserInterface.SetLemonadePricePrompt();
     while (!int.TryParse(Console.ReadLine(), out priceOfLemonade) || priceOfLemonade <= 0 || priceOfLemonade > 10)
     {
         UserInterface.InvalidLemonadePriceEntry();
     }
     Console.Clear();
     return(priceOfLemonade);
 }