Ejemplo n.º 1
0
        public async Task InitializeAsync()
        {
            var courses = await Database.GetCoursesAsync();

            var sortedCourses = courses.OrderBy(x => x.ExamDate)
                                .ThenBy(x => x.SortTime).ToList();

            foreach (Course current in sortedCourses)
            {
                Classes.Add(current);
            }
        }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 3
0
        public async Task InitializeAsync()
        {
            Classes = await Database.GetCoursesAsync();

            foreach (var course in Classes)
            {
                AttendanceCards.Add(new AttendanceCard
                {
                    CourseName = course.CourseName,
                    CourseId   = course.Id
                });
            }

            Violations = await Database.GetAttendanceViolationsAsync();

            GetViolations();
        }