public void OpenCheckoutWindow() { SelectedTickets = SqLite.QuerySelectedTickets(match.Id, user.Id); CheckoutWindow checkoutWindow = new CheckoutWindow(match, user, SelectedTickets); checkoutWindow.Show(); ((Form)stadiumControl.TopLevelControl).Close(); }
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); }
private void newButton_Click(object sender, RoutedEventArgs e) { checkout = new CheckoutWindow(); NavigationService.Navigate(checkout); }
private void initializeData() { checkout = new CheckoutWindow(); }