private void fillGrid()
 {
     accesssFlight();
     PassengerInfo.loadPassengersReserve(tnumber);
     FlightContainer.loadFlight(fnumber);
     fillText();
 }
Пример #2
0
        private void fillLabels()
        {
            setTicketID(ReserveP.getTicketID());

            //MessageBox.Show(ticketID);

            SQLConnection.Instance.OpenConnection();

            int          flight;
            MySqlCommand findFlight = new MySqlCommand("Select FlightID from Reserve where ticketNo = '" + ticketID + "';", SQLConnection.Instance.GetConnection());

            flight = Convert.ToInt32(findFlight.ExecuteScalar());

            SQLConnection.Instance.CloseConnection();

            FlightContainer.loadFlight(flight);

            flight_label1.Text += " #" + FlightContainer.flightObject[0].getFlightNo() + " " + FlightContainer.flightObject[0].getDepart() +
                                  " to " + FlightContainer.flightObject[0].getArrive() + " Price: $" + Price.getReserveAmount(ticketID);
        }
Пример #3
0
 private void fillEmail()
 {
     FlightContainer.loadFlight(FlightP.getFlightNumber());
     SendEmail(Customer.getEmail());
 }