Ejemplo n.º 1
0
        async private void GetGroupStudents()
        {
            Student[] students = await APIHandler.GetGroupStudents(group);

            foreach (Student student in students)
            {
                groupStudents.Add(student);
            }
        }
Ejemplo n.º 2
0
        async private void GetStudents()
        {
            this.students = await APIHandler.GetGroupStudents(group);

            foreach (Student student in this.students)
            {
                this.studentIdToStudent[student.id] = student;
            }
            ProgressBarIncrement();
        }
Ejemplo n.º 3
0
        public ProvideFeedback(Assignment assignment)
        {
            InitializeComponent();

            this.assignment               = assignment;
            label2.Text                   = "You're providing feedback to '" + assignment.group.name + "' for '" + assignment.title + "'.";
            maxScoreLabel.Text            = "/" + assignment.maxScore.ToString();
            students                      = Task.Run(async() => await APIHandler.GetGroupStudents(assignment.group)).Result;
            studentComboBox.DataSource    = students;
            studentComboBox.DisplayMember = "fullName";
            studentComboBox.ValueMember   = "fullName";
        }