Пример #1
0
        public async Task InitializeAsync()
        {
            Classes = await Database.GetCoursesAsync();

            ProfessorsHours = await Database.GetProfessorTimesAsync();

            Assignments = await Database.GetAssignmentsAsync();

            /* Sort the list of based off of the most recently updated one */
            Assignments.Sort
            (
                (x, y) => x.AssignmentDate.CompareTo(y.AssignmentDate)
            );

            Assignments.Reverse();


            /* Format the student gradeCards for the separate views    */
            GetGradeCards();
        }