示例#1
0
      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);
      }
示例#2
0
 public void removeFlight(Fligh fligh)
 {
     flights.Remove(fligh);
 }
示例#3
0
 public void registerFlight(Fligh fligh)
 {
     flights.Add(fligh);
 }