示例#1
0
        private void BtnReceiptList_Click(object sender, RoutedEventArgs e)
        {
            Window WindowReceiptList = new ReceiptList(adminUser);

            WindowReceiptList.Show();
            Close();
        }
示例#2
0
 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);
     }
 }