Esempio n. 1
0
 public frmAirportManagement(bool isEdit, Airport airport)
 {
     InitializeComponent();
     this.Airport = airport;
     txtLocation.Text = Airport.Location;
     txtAirportName.Text = Airport.Name;
 }
Esempio n. 2
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. 3
0
        private void ReadAirports()
        {

            airports.Clear();


            StreamReader file = new StreamReader(path + "Databases\\Airports.txt");

            string lijn;
            while ((lijn = file.ReadLine()) != null)
            {
                string[] apart = lijn.Split('|');


                Airport airport = new Airport(apart[0], apart[1]);

                airports.Add(airport);

            }

            file.Close();


        }
Esempio n. 4
0
        private void btnAdd_Click(object sender, EventArgs e)
        {

            this.Airport = new Airport(txtLocation.Text,txtAirportName.Text);

        }