private void submit_changes_button_Click(object sender, RoutedEventArgs e)
 {
     if (SqlLink.GetAccountType(_MainUsername) != "Staff")
     {
         SqlLink.DataContextInv.SubmitChanges();
     }
     else
     {
         MessageBox.Show("You do not have permission to change items details");
     }
 }
 private void log_button_Click(object sender, RoutedEventArgs e)
 {
     //only show the log window if the user is an admin or manager
     if (SqlLink.GetAccountType(MainUsername) == "Manager" || SqlLink.GetAccountType(MainUsername) == "Admin")
     {
         logWindow logwin = new logWindow();
         logwin.Show();
     }
     else
     {
         MessageBox.Show("You do not have permission to view the log window");
     }
 }
 private void submit_changes_button_Click(object sender, RoutedEventArgs e)
 {
     if (SqlLink.GetAccountType(_MainUsername) != "Staff")
     {
         SqlLink.DataContextInv.SubmitChanges();
     }
 }