예제 #1
0
        public void OpenCheckoutWindow()
        {
            SelectedTickets = SqLite.QuerySelectedTickets(match.Id, user.Id);
            CheckoutWindow checkoutWindow = new CheckoutWindow(match, user, SelectedTickets);

            checkoutWindow.Show();
            ((Form)stadiumControl.TopLevelControl).Close();
        }
예제 #2
0
        private void editButton_Click(object sender, RoutedEventArgs e)
        {
            Rental toEdit = null;

            if (rental_HistoryDataGrid.SelectedItem != null)
            {
                toEdit = rental_HistoryDataGrid.SelectedItem as Rental;
            }

            checkout = new CheckoutWindow(toEdit, true);

            NavigationService.Navigate(checkout);
        }
예제 #3
0
        private void newButton_Click(object sender, RoutedEventArgs e)
        {
            checkout = new CheckoutWindow();

            NavigationService.Navigate(checkout);
        }
예제 #4
0
 private void initializeData()
 {
     checkout = new CheckoutWindow();
 }