public static void DrawTicketsInfo(IFlight flight) { Table tickeTable = new Table(String.Format("Price table for {0}", flight.Type)); tickeTable.AddColumn("Flight number", 13, Align.Left); List<string> row = new List<string>(); row.Add(flight.FlightNumber); foreach (SeatType seatType in flight.GetSeatTypes()) { tickeTable.AddColumn(seatType.Name,20,Align.Right); row.Add(flight.GetTicketCost(seatType).ToString()); } tickeTable.DrawHead(); tickeTable.DrawRow(row.ToArray()); tickeTable.DrawFooter(); }