public ReservationForm(Customer cust, string flightCode, TripInfo ti)
 {
     reservationConn = new OleDbConnection(connString);
     customer = cust;
     this.ti = ti;
     this.flightCode = flightCode;
     drawPanel();
     drawPlan();
     InitializeComponent();
 }
        private void btnConfirm_Click(object sender, EventArgs e)
        {
            DialogResult dialogResult = MessageBox.Show("Confirm Trip?", "Confirmation", MessageBoxButtons.OKCancel);

            if (dialogResult == DialogResult.OK)
            {
                string o = cbxOrigin.SelectedItem.ToString();
                string d = cbxDestination.SelectedItem.ToString();
                string dt = txtArrive.Text;
                string at = txtDepart.Text;
                string fc = txtCode.Text;

                TripInfo tripInfo = new TripInfo(fc, o, d, dt, at, 0.0);

                this.Hide();
                ReservationForm rf = new ReservationForm(customer, txtCode.Text, tripInfo);
                rf.ShowDialog();
            }
        }
 public Reservation(Customer customer, TripInfo tripInfo, string seat)
 {
     this.customer = customer;
     this.tripInfo = tripInfo;
     this.seat = seat;
 }