public SeatSelectionPage(FlightReservation reservation)
     : this()
 {
     Reservation = reservation;
     itmCtlSeats.ItemsSource = reservation.Seats;
     lsbCustomers.ItemsSource = reservation.Customers;
 }
        public CustomerDetailsPage(FlightReservation flightReservation)
            : this()
        {
            CurrentReservation = flightReservation;

            for (int i = 0; i < flightReservation.NoOfTravellers; i++)
            {
                _customerList.Add(new Customer());
            }

            itmCtlCustomer.ItemsSource = _customerList;
        }
        private void btnSelect_Click_1(object sender, RoutedEventArgs e)
        {
            var selectedFlightLeg = lsbSearchResults.SelectedItem as FlightLeg;
            int NoOfTravellers = Convert.ToInt32(cmbNoOfTravellers.SelectionBoxItem);
            FlightReservation flightReservation = new FlightReservation();

            flightReservation.SelectedFlightLeg = selectedFlightLeg;
            flightReservation.NoOfTravellers = NoOfTravellers;
            flightReservation.Seats = new FlightManager().GetFlightSeats(selectedFlightLeg.Id);
            flightReservation.SelectedRoute = new FlightManager().GetFlightRoutes().Single(p => p.Id == selectedFlightLeg.FlightRouteId);

            NavigationService.Navigate(new CustomerDetailsPage(flightReservation));
        }
 public OrderSummaryPage(FlightReservation reservation)
     : this()
 {
     _reservation = reservation;
     ctlSummary.DataContext = reservation;
 }