Guest User

Untitled

a guest
Jan 27th, 2019
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. int point_user1=0;
  2. int point_user2=0;
  3.  
  4. private void button1_Click(object sender, EventArgs e)
  5. {
  6. this.Close();
  7. }
  8.  
  9. private void button2_Click(object sender, EventArgs e)
  10. {
  11. string user, pass;
  12. user = txtUser.Text;
  13. pass = txtPass.Text;
  14. if (user == "dpsd14002" && pass == "1234")
  15. {
  16. MessageBox.Show("Δικαιούσαι Δωρεάν Σίτιση. Δεν Χρειάζεται να πληρώσεις.");
  17. point_user1++;
  18. if(point_user1 >= 10){
  19. MessageBox.Show("Δωρεάν Σίτιση λόγο πόντων.");
  20. }
  21. // εδω θα μπορουσε να υλοποιηθει ενας τροπος να μπαινουν ποντοι ...
  22. }
  23.  
  24. else if (user == "dpsd14003" && pass == "5678")
  25. {
  26. MessageBox.Show("Δεν Δικαιούσαι Δωρεάν Σίτιση. Πλήρωσε 2,50€");
  27. point_user2++;
  28. if(point_user2 >= 10){
  29. MessageBox.Show("Δωρεάν Σίτιση λόγο πόντων.");
  30. }
  31. // και εδω παλι θα μπορουσε να υλοποιηθει ενας τροπος να μπαινουν οι ποντοι...
  32. }
  33.  
  34. else
  35. {
  36. MessageBox.Show("Error");
  37.  
  38. }
  39.  
  40.  
  41. }
Add Comment
Please, Sign In to add comment