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


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