private void FillComboBoxes() { GroupList.Clear(); FacultyList.Clear(); DBUtils.GetGroupList(GroupList); DBUtils.GetFacultyList(FacultyList); Result1ComBox.Items.Clear(); Result2ComBox.Items.Clear(); Result5ComBox.Items.Clear(); foreach (string gr in GroupList) { Result1ComBox.Items.Add(gr); Result5ComBox.Items.Add(gr); } foreach (string fl in FacultyList) { Result2ComBox.Items.Add(fl); } }