private void loadCourse() { OnlineExam ent = new OnlineExam(); var crs = ent.getInsCourses(instructorID); comboBox1.Items.Clear(); foreach (var item in crs) { comboBox1.Items.Add($"{item.CrsId}, {item.CrsName}"); } }