Beispiel #1
0
 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;
 }
Beispiel #2
0
 public void RemoveAirplaneTypeLicense(Airplane airplane)
 {
     this.Airplanetypes.Remove(airplane);
 }
Beispiel #3
0
        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();


        }
Beispiel #4
0
 public void AddAirplaneTypeLicense(Airplane airplane)
 {
     this.Airplanetypes.Add(airplane);
 }