private void btnBuyTrip_Click(object sender, EventArgs e)
        {
            string planeCode = txtPlaneCode.Text;
            string origin    = txtOrigin.Text;
            string dest      = txtDest.Text;
            string depTime   = txtDepTime.Text;
            string arrTime   = txtArrTime.Text;
            double prices    = Convert.ToDouble(txtPrices.Text);

            AirCraft    custCraft   = new AirCraft(planeCode, origin, dest, depTime, arrTime, prices);
            Trips       custTrip    = new Trips(custCraft, numOfSeat);
            Reservation custReserve = new Reservation(custTrip, theCust, tripType);
        }
        private void btnBuyTrip_Click(object sender, EventArgs e)
        {
            string planeCode = txtPlaneCode.Text;
            string origin = txtOrigin.Text;
            string dest = txtDest.Text;
            string depTime = txtDepTime.Text;
            string arrTime = txtArrTime.Text;
            double prices = Convert.ToDouble(txtPrices.Text);

            AirCraft custCraft = new AirCraft(planeCode, origin, dest, depTime, arrTime, prices);
            Trips custTrip = new Trips(custCraft, numOfSeat);
            Reservation custReserve = new Reservation(custTrip, theCust, tripType);
        }
 public void setCraft(AirCraft craft)
 {
     this.craft = craft;
 }
 public Trips(AirCraft cra, SeatInfo s)
 {
     setCraft(cra);
     addSeatList(s);
 }
 public Trips(AirCraft cra, int n)
 {
     setCraft(cra);
     setSeats( n);
 }
예제 #6
0
 public void setCraft(AirCraft craft)
 {
     this.craft = craft;
 }
예제 #7
0
 public Trips(AirCraft cra, int n)
 {
     setCraft(cra);
     setSeats(n);
 }