Пример #1
0
        public void OutputBookings()
        {
            if (Base.Count == 0)
            {
                Program.WriteColorLine(" < There's no bookings in base > ", ConsoleColor.Magenta);
                return;
            }

            Console.WriteLine(Base.Count == 1 ? " < Booking > " : " < Bookings > ");
            Booking.GetHeadOfTable();

            foreach (Booking CurFlight in Base)
            {
                CurFlight.GetInfo();
            }
            Console.WriteLine();
        }