コード例 #1
0
        protected override void Draw()
        {
            Console.Clear();
            Console.Write(
                @"================================================================================
    Step 4. Confirm order
================================================================================

");
            Console.WriteLine($"    Base pizza: {order.BasePizza.Name}");
            Console.WriteLine($"    Extra toppings: {order.ExtraToppingsToString()}");
            Console.WriteLine($"    Size: {order.Size}");
            Console.WriteLine($"    Price: {order.GetPrice()}");

            Console.Write(
                @"    
    Do you want to place this order?
    1. Yes, pay with Visa card
    2. Yes, pay with Mastercard card
    3. No, go back
");
            Console.Write($"\nChoose number [1-3]: ");
        }