Exemplo n.º 1
0
        private void AddBookingView_Loaded(object sender, RoutedEventArgs e)
        {
            BookingViewModel bookingViewModel = (DataContext as BookingViewModel);

            if (bookingViewModel.AddBookingView == null)
            {
                var addBookingView = (AddBookingView)sender;
                addBookingView.BookingView      = this;
                bookingViewModel.AddBookingView = addBookingView;
                bookingViewModel.SetupAddBookingView();
            }
        }