private void btnGrabar_Click(object sender, System.EventArgs e)
        {
            try
            {
                Cursor = Cursors.WaitCursor;
                if (!ValidarIngreso())
                {
                    ProfileBL objBL_Perfil = new ProfileBL();

                    ProfileBE objPerfil = new ProfileBE();
                    objPerfil.IdProfile = IdProfile;
                    objPerfil.NameProfile = txtDescripcion.Text;
                    objPerfil.FlagState = chkEstado.Checked;
                    objPerfil.Login = Parametros.strUsuarioLogin;
                    objPerfil.Machine = WindowsIdentity.GetCurrent().Name.ToString();
                    objPerfil.IdCompany = Parametros.intEmpresaId;
                   
                    if (pOperacion == Operacion.Nuevo)
                        objBL_Perfil.Inserta(objPerfil, pListaAccess);
                    else
                        objBL_Perfil.Actualiza(objPerfil, pListaAccess);

                    this.Close(); 
                }
            }
            catch (Exception ex)
            {
                Cursor = Cursors.Default;
                XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }