Advertisement
Guest User

Untitled

a guest
Oct 20th, 2017
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. {
  2.  
  3.  
  4. string newUserName = Convert.ToString(txtCreUse);
  5. string newPassword = Convert.ToString(txtCrePas);
  6. string newFirst = Convert.ToString(txtCreFir);
  7. string newLast = Convert.ToString(txtCreLas);
  8.  
  9. int loyaltyPoints = 0;
  10. bool staffPassword = false;
  11. bool vatPassword = false;
  12.  
  13.  
  14. if (txtCreSta.Text == "staff1")
  15. {
  16. staffPassword = true;
  17. }
  18. else
  19. {
  20.  
  21. }
  22.  
  23. if (txtCreVAT.Text == "vat1")
  24. {
  25. vatPassword = true;
  26. }
  27. else
  28. {
  29.  
  30. }
  31.  
  32. customerTableTableAdapter1.Insert(txtCreFir.Text, txtCreLas.Text, txtCreUse.Text, loyaltyPoints, vatPassword, staffPassword, txtCrePas.Text);
  33.  
  34. MessageBox.Show("You have succesfully created a user.");
  35. Variables.loggedIn = true;
  36. product frm = new product();
  37. frm.Show();
  38.  
  39.  
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement