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(); }
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(); }