static int GetFlightTime(Aircraft aircraft) { int total = 0; foreach (Flight flight in LogBook.GetFlights(aircraft)) { total += flight.FlightTime; } return(total); }