private void EmployeeEntryForm_Load(object sender, EventArgs e)
        {
            DepartmentBusinessComponent departmentBo =
                new DepartmentBusinessComponent();
            var departments = departmentBo.GetRecords();

            comboBoxDepartments.DataSource    = departments;
            comboBoxDepartments.DisplayMember = "DepartmentName";
        }
Esempio n. 2
0
        private void DepartmentDetailsForm_Load(object sender, EventArgs e)
        {
            //DataAccessObjectProvider provider
            //    = new DataAccessObjectProvider();
            //provider.Create();
            DepartmentBusinessComponent departmentBo
                = new DepartmentBusinessComponent();
            var departments = departmentBo.GetRecords();

            comboBoxDepartments.DataSource    = departments;
            comboBoxDepartments.DisplayMember = "DepartmentName";
        }