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


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

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

        }