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

            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadArea();
            }
        }
        private void btnEditArea_Click(object sender, EventArgs e)
        {
            int id = TextUtils.ToInt(gvArea.GetFocusedRowCellValue(colIDAr));

            if (id == 0)
            {
                return;
            }
            prevRow = gvArea.GetSelectedRows()[0];
            AreaModel model = (AreaModel)AreaBO.Instance.FindByPK(id);

            frmAddEditAreas frm = new frmAddEditAreas(cGlobalVariables.Edit);

            frm.areaModel = model;
            if (frm.ShowDialog() == DialogResult.OK)
            {
                LoadArea();
                LoadDepartment();
                gvArea.FocusedRowHandle = prevRow;
            }
        }