private void LoadDepartmentComboBox()
 {
     DepartmentManager departmentManager=new DepartmentManager();
     deptComboBox.DataSource = null;
     deptComboBox.DataSource = departmentManager.GetAllDepartments();
     deptComboBox.DisplayMember = "Code";
     deptComboBox.ValueMember = "Id";
 }
Example #2
0
 private void EnterCourseUI_Load(object sender, EventArgs e)
 {
     DepartmentManager aDepartmentManager = new DepartmentManager();
     departmentComboBox.DataSource = null;
     departmentComboBox.DataSource = aDepartmentManager.GetAllDepartments();
     departmentComboBox.DisplayMember = "Name";
     departmentComboBox.ValueMember = "Id";
     SemesterManager aSemesterManager = new SemesterManager();
     semesterComboBox.DataSource = null;
     semesterComboBox.DataSource = aSemesterManager.GetAllSemesters();
     semesterComboBox.DisplayMember = "Name";
     semesterComboBox.ValueMember = "Id";
 }
Example #3
0
        private void TeacherEntryUI_Load(object sender, EventArgs e)
        {
            DepartmentManager aDepartmentManager = new DepartmentManager();
            deptComboBox.DataSource = null;
            deptComboBox.DataSource = aDepartmentManager.GetAllDepartments();
            deptComboBox.DisplayMember = "Name";
            deptComboBox.ValueMember = "Id";

            DesignationManager designationManager = new DesignationManager();
            designationComboBox.DataSource = null;
            designationComboBox.DataSource = designationManager.GetAllDesignation();
            designationComboBox.DisplayMember = "Name";
            designationComboBox.ValueMember = "Id";
        }