Exemplo n.º 1
0
        public void OutputFlights()
        {
            if (Base.Count == 0)
            {
                Program.WriteColorLine(" < There's no flights in base > ", ConsoleColor.Magenta);
                return;
            }

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

            foreach (Flight CurFlight in Base)
            {
                CurFlight.GetInfo();
            }
            Console.WriteLine();
        }
Exemplo n.º 2
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();
        }