public void LoadData(DTO_Employees editEmp)
        {
            BUS_EmployeeType busEmpType = new BUS_EmployeeType();
            DataTable        AccPer     = busEmpType.GetEmployeeTypes();

            empTypes = new List <EmployeeType>();
            foreach (DataRow row in AccPer.Rows)
            {
                string id   = row["EmployeeTypeID"].ToString();
                string name = row["EmployeeTypeName"].ToString();
                empTypes.Add(new EmployeeType(id, name));
            }
            this.cbEmpType.ItemsSource = empTypes;
            this.cbEmpType.Items.Refresh();

            tboxAccount.Text      = editEmp.EmployeeID;
            tboxEmpName.Text      = editEmp.EmployeeName;
            tboxPassword.Password = editEmp.Password;
            cbEmpType.Text        = editEmp.EmployeeTypeID;

            if (editEmp.EmployeeID == "E001")
            {
                tboxAccount.IsEnabled = false;
                cbEmpType.IsEnabled   = false;
            }
            else
            {
                tboxAccount.IsEnabled = true;
                cbEmpType.IsEnabled   = true;
            }
        }
        public void LoadData()
        {
            BUS_EmployeeType busEmpType = new BUS_EmployeeType();
            DataTable        AccPer     = busEmpType.GetEmployeeTypes();

            empTypes = new List <EmployeeType>();
            foreach (DataRow row in AccPer.Rows)
            {
                string id   = row["EmployeeTypeID"].ToString();
                string name = row["EmployeeTypeName"].ToString();
                empTypes.Add(new EmployeeType(id, name));
            }

            this.comboboxEmpType.ItemsSource = empTypes;
            this.comboboxEmpType.Items.Refresh();
        }