private void BtnReceiptList_Click(object sender, RoutedEventArgs e) { Window WindowReceiptList = new ReceiptList(adminUser); WindowReceiptList.Show(); Close(); }
private void BtnReceipts_Click(object sender, RoutedEventArgs e) { if (insertedUser != null) { if (insertedUser.IsCustomer == true) { if (fullCustomer != null) { Window WindowReceiptList = new ReceiptList(fullCustomer); WindowReceiptList.Show(); Close(); } else { MessageBox.Show("Error loading customer please re-login", "Plz Restart program"); } } else { MessageBox.Show("You MUST be a customer to view receipts, \nMake a profile.", "Warning"); } } else { MessageBox.Show("Customer Login Error", "Must Re-Login", MessageBoxButton.OK, MessageBoxImage.Error); } }