Example #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);
        }