private void btnCreateDep_Click(object sender, EventArgs e)
        {
            frmAddEditDepartment frm = new frmAddEditDepartment(cGlobalVariables.Add);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadDepartment();
            }
        }
        private void btnEditDep_Click(object sender, EventArgs e)
        {
            int id = TextUtils.ToInt(gvDepartment.GetFocusedRowCellValue(colIDDep));

            if (id == 0)
            {
                return;
            }
            prevRow1 = gvDepartment.GetSelectedRows()[0];
            DepartmentModel model = (DepartmentModel)DepartmentBO.Instance.FindByPK(id);

            frmAddEditDepartment frm = new frmAddEditDepartment(cGlobalVariables.Edit);

            frm.departmentModel = model;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadDepartment();
                gvDepartment.FocusedRowHandle = prevRow1;
            }
        }