Exemple #1
0
        public void BookFlight(FlightInfo selectedFlight, int adults, int children, int infants)
        {
            BookFlightViewModel viewModel = new BookFlightViewModel(new CrudManager(), this, selectedFlight, adults, children, infants);

            BookFlightPage bookFlightPage = new BookFlightPage(viewModel);

            m_mainWindow.Navigate(bookFlightPage);
        }
        public BookFlightPage(BookFlightViewModel viewModel)
        {
            DataContext = viewModel;

            InitializeComponent();
        }