Пример #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);
        }
Пример #2
0
        public BookFlightPage(BookFlightViewModel viewModel)
        {
            DataContext = viewModel;

            InitializeComponent();
        }