示例#1
0
        private void btnFlights_Click(object sender, EventArgs e)
        {
            Flights_Page f = new Flights_Page();

            Hide();
            f.Show();
        }
示例#2
0
        private void btnBack_Click(object sender, EventArgs e)
        {
            Flights_Page fp = new Flights_Page();

            Hide();
            fp.Show();
        }
示例#3
0
        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();
        }