Advertisement
Guest User

Untitled

a guest
Jul 13th, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.50 KB | None | 0 0
  1. foreach (XmlNode node in doc.SelectNodes("/users/user"))
  2.             {
  3.              
  4.                 String Username = node.SelectSingleNode("UserID").InnerText;
  5.                 String Password = node.SelectSingleNode("Password").InnerText;
  6.                 Password = encode(textBox7.Text);
  7.                  
  8.                 if (Username == comboBox1.SelectedItem.ToString() && Password == decode(textBox7.Text))
  9.                 {
  10.                     DialogResult = DialogResult.OK;
  11.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement