private void tlbMenu_NewClick()
 {
     try
     {
         frmManCorporationEdit objManCorporation = new frmManCorporationEdit();
         objManCorporation.lstCorporation = mLista;
         objManCorporation.pOperacion     = frmManCorporationEdit.Operacion.Nuevo;
         objManCorporation.IdCorporation  = 0;
         objManCorporation.StartPosition  = FormStartPosition.CenterParent;
         objManCorporation.ShowDialog();
         Cargar();
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        public void InicializarModificar()
        {
            if (gvCorporation.RowCount > 0)
            {
                CorporationBE objCorporation = new CorporationBE();

                objCorporation.IdCorporation = int.Parse(gvCorporation.GetFocusedRowCellValue("IdCorporation").ToString());

                frmManCorporationEdit objManCorporationEdit = new frmManCorporationEdit();
                objManCorporationEdit.pOperacion     = frmManCorporationEdit.Operacion.Modificar;
                objManCorporationEdit.IdCorporation  = objCorporation.IdCorporation;
                objManCorporationEdit.pCorporationBE = objCorporation;
                objManCorporationEdit.StartPosition  = FormStartPosition.CenterParent;
                objManCorporationEdit.ShowDialog();

                Cargar();
            }
            else
            {
                MessageBox.Show("No se pudo editar");
            }
        }