Esempio n. 1
0
        public void SaveChanges()
        {
            Student student = StudentData.GetStudentByFacultyNumber(Student.FacultyNumber);

            UserLogin.User user = UserLogin.UserData.GetUserByFacultyNumber(Student.FacultyNumber);
            if (student != null)
            {
                if (user != null)
                {
                    student.LastEnter = user.LastEnter.ToString();
                }
                Student.SetStudent(student);
            }
            else
            {
                Student.Clear();
                FormState.IsEnabled = false;
            }
        }