Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void Initilization()
- {
- try {
- for (int i = 0; i < info.Count; i++)
- if (login.Equals(info[i].NameOut()))
- {
- //label5.Text = info[i].NameOut();
- if (password.Equals(info[i].PassOut()))
- {
- label5.Text = info[i].PassOut();
- if (func == Function(x))
- {
- isCorrect = true;
- //label5.Text = Function(x).ToString();
- }
- else throw new LoginException();
- }
- else throw new LoginException();
- }
- else throw new LoginException();
- }
- catch (LoginException e)
- {
- textBox1.Clear();
- textBox2.Clear();
- textBox3.Clear();
- label4.Enabled = true;
- label4.Visible = true;
- label4.Text = "Incorrectly entered some of the fields";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement