Esempio n. 1
0
        //checks if input values are valid in database
        public static bool checkLogin(string username, string password)
        {
            bool           correctlogin = false;
            List <Student> Studentlist  = StudentDB.GetFullStudentlist();

            foreach (Student m in Studentlist)
            {
                if (m.Studentnumber == username && m.Password == password)
                {
                    correctlogin = true;
                    break;
                }
            }
            return(correctlogin);
        }
Esempio n. 2
0
 //gets a full Student list
 public static List <Student> GetFullStudentlist()
 {
     return(StudentDB.GetFullStudentlist());
 }