コード例 #1
0
 public SeatSelectionPage(FlightReservation reservation)
     : this()
 {
     Reservation = reservation;
     itmCtlSeats.ItemsSource = reservation.Seats;
     lsbCustomers.ItemsSource = reservation.Customers;
 }
コード例 #2
0
        public CustomerDetailsPage(FlightReservation flightReservation)
            : this()
        {
            CurrentReservation = flightReservation;

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

            itmCtlCustomer.ItemsSource = _customerList;
        }
コード例 #3
0
        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));
        }
コード例 #4
0
 public OrderSummaryPage(FlightReservation reservation)
     : this()
 {
     _reservation = reservation;
     ctlSummary.DataContext = reservation;
 }