private void btnFlights_Click(object sender, EventArgs e) { Flights_Page f = new Flights_Page(); Hide(); f.Show(); }
private void btnBack_Click(object sender, EventArgs e) { Flights_Page fp = new Flights_Page(); Hide(); fp.Show(); }
private void btnAddFlight_Click(object sender, EventArgs e) { string origin = txtPortOfOrigin.Text; string destination = txtDestinationPort.Text; if (checkInteger(txtFlightNumber) && checkInteger(txtMaxSeats)) { int flightNo = Convert.ToInt32(txtFlightNumber.Text); int maxSeats = Convert.ToInt32(txtMaxSeats.Text); Program.aCoord.addFlight(flightNo, origin, destination, maxSeats); } flightAdded = true; Flights_Page fp = new Flights_Page(); Hide(); fp.Show(); }