Exemplo n.º 1
0
 private void TestForm_Load(object sender, EventArgs e)
 {
     comboBoxBinding.LoadGenderComboBox(cmbGender);
     comboBoxBinding.LoadDepartmentComboBox(cmbDepartment);
     comboBoxBinding.LoadFacultyComboBox(cmbFaculty);
     comboBoxBinding.LoadStudentComboBox(cmbStudent);
 }
Exemplo n.º 2
0
 private void chkSearchFacultyChooseFromList_CheckedChanged(object sender, EventArgs e)
 {
     if (chkSearchFacultyChooseFromList.Checked)
     {
         txtSearchFacultyId.Text    = "";
         txtSearchFacultyId.Enabled = false;
         comboBoxBinding.LoadFacultyComboBox(cmbSearchFacultyChooseFromList);
         cmbSearchFacultyChooseFromList.Enabled = true;
     }
     else
     {
         txtSearchFacultyId.Text = "";
         cmbSearchFacultyChooseFromList.SelectedValue = "";
         txtSearchFacultyId.Enabled             = true;
         cmbSearchFacultyChooseFromList.Enabled = false;
     }
 }