public Flight(Airport Departure, Airport Destination, Airplane Airplane, String CallSign, DateTime TakeOffTime) { this.Departure = Departure; this.Destination = Destination; this.Airplane = Airplane; this.CallSign = CallSign; this.Crew = new List<Cabinecrew>(); this.Pilots = new List<Pilot>(); this.Reservations = new List<Passenger>(); this.TakeOffTime = TakeOffTime; }
public void RemoveAirplaneTypeLicense(Airplane airplane) { this.Airplanetypes.Remove(airplane); }
private void ReadPlanes() { airplanes.Clear(); StreamReader file = new StreamReader(path + "Databases\\Airplanes.txt"); string lijn; while ((lijn = file.ReadLine()) != null) { string[] apart = lijn.Split('|'); Airplane airplane = new Airplane(apart[0], apart[1], apart[2], int.Parse(apart[3]), int.Parse(apart[4]), int.Parse(apart[5])); airplanes.Add(airplane); } file.Close(); }
public void AddAirplaneTypeLicense(Airplane airplane) { this.Airplanetypes.Add(airplane); }