예제 #1
0
 public bool verifyCredentials(string username, string password, Userlist userlist)
 {
     foreach (User temp in userlist.users)
     {
         if (temp.username.Equals(username) && temp.password.Equals(password))
         {
             return(true);
         }
     }
     foreach (User temp in userlist.admins)
     {
         if (temp.username.Equals(username) && temp.password.Equals(password))
         {
             isAdmin = true;
             return(true);
         }
     }
     return(false);
 }
예제 #2
0
 public LoginWindow()
 {
     InitializeComponent();
     userlist = new Userlist();
     userInput.Focus();
 }