public frmAirportManagement(bool isEdit, Airport airport) { InitializeComponent(); this.Airport = airport; txtLocation.Text = Airport.Location; txtAirportName.Text = Airport.Name; }
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; }
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(); }
private void btnAdd_Click(object sender, EventArgs e) { this.Airport = new Airport(txtLocation.Text,txtAirportName.Text); }