Ejemplo n.º 1
0
        async public override void RefreshList()
        {
            // Groups
            Group[] groups = await APIHandler.TeacherGetGroups();

            // List
            if (list != null)
            {
                list.Dispose();
            }

            list          = new ListPanel(this.parent.Width, groups, typeof(GroupListItem));
            list.Location = new Point(0, 35);
            list.Width    = this.parent.Width;
            list.Height   = this.parent.Height - 35;
            this.Controls.Add(list);
        }
Ejemplo n.º 2
0
        async public override void RefreshList()
        {
            /// <summary>
            /// Executed after opening the manage student tab.
            /// </summary>

            // Data
            Student[] students = await APIHandler.GetAllStudents();

            // List
            if (list != null)
            {
                list.Dispose();
            }
            list          = new ListPanel(this.parent.Width, students, typeof(StudentListItem));
            list.Location = new Point(0, 35);
            list.Width    = this.parent.Width;
            list.Height   = this.parent.Height - 35;
            this.Controls.Add(list);
        }