コード例 #1
0
 private void BindTeacherForm_Load(object sender, EventArgs e)
 {
     studentBox.DisplayMember = "Name";
     studentBox.ValueMember   = "Id";
     studentBox.DataSource    = CoursesRequests.GetStudents();
 }