Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. public void Initilization()
  2. {
  3. try {
  4. for (int i = 0; i < info.Count; i++)
  5. if (login.Equals(info[i].NameOut()))
  6. {
  7. //label5.Text = info[i].NameOut();
  8. if (password.Equals(info[i].PassOut()))
  9. {
  10. label5.Text = info[i].PassOut();
  11. if (func == Function(x))
  12. {
  13. isCorrect = true;
  14. //label5.Text = Function(x).ToString();
  15. }
  16. else throw new LoginException();
  17. }
  18. else throw new LoginException();
  19. }
  20. else throw new LoginException();
  21. }
  22. catch (LoginException e)
  23. {
  24. textBox1.Clear();
  25. textBox2.Clear();
  26. textBox3.Clear();
  27. label4.Enabled = true;
  28. label4.Visible = true;
  29. label4.Text = "Incorrectly entered some of the fields";
  30.  
  31. }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement