private void tlbMenu_NewClick()
 {
     try
     {
         frmManFuenteLesionEdit objManFuenteLesion = new frmManFuenteLesionEdit();
         objManFuenteLesion.lstFuenteLesion = mLista;
         objManFuenteLesion.pOperacion      = frmManFuenteLesionEdit.Operacion.Nuevo;
         objManFuenteLesion.IdFuenteLesion  = 0;
         objManFuenteLesion.StartPosition   = FormStartPosition.CenterParent;
         objManFuenteLesion.ShowDialog();
         Cargar();
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        public void InicializarModificar()
        {
            if (gvFuenteLesion.RowCount > 0)
            {
                FuenteLesionBE objFuenteLesion = new FuenteLesionBE();
                objFuenteLesion.IdFuenteLesion   = int.Parse(gvFuenteLesion.GetFocusedRowCellValue("IdFuenteLesion").ToString());
                objFuenteLesion.DescFuenteLesion = gvFuenteLesion.GetFocusedRowCellValue("DescFuenteLesion").ToString();
                objFuenteLesion.FlagEstado       = Convert.ToBoolean(gvFuenteLesion.GetFocusedRowCellValue("FlagEstado").ToString());

                frmManFuenteLesionEdit objManFuenteLesionEdit = new frmManFuenteLesionEdit();
                objManFuenteLesionEdit.pOperacion      = frmManFuenteLesionEdit.Operacion.Modificar;
                objManFuenteLesionEdit.IdFuenteLesion  = objFuenteLesion.IdFuenteLesion;
                objManFuenteLesionEdit.pFuenteLesionBE = objFuenteLesion;
                objManFuenteLesionEdit.StartPosition   = FormStartPosition.CenterParent;
                objManFuenteLesionEdit.ShowDialog();

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