public Boolean searchFlightByNum(String flightNum, out Fligh retFligh) { foreach (Fligh fligh in flights) { if (fligh.getNumber().Equals(flightNum)) { retFligh = fligh; return(true); } } retFligh = null; return(false); }
public void removeFlight(Fligh fligh) { flights.Remove(fligh); }
public void registerFlight(Fligh fligh) { flights.Add(fligh); }