private void tlbMenu_NewClick()
 {
     try
     {
         frmManParteLesionadaEdit objManParteLesionada = new frmManParteLesionadaEdit();
         objManParteLesionada.lstParteLesionada = mLista;
         objManParteLesionada.pOperacion        = frmManParteLesionadaEdit.Operacion.Nuevo;
         objManParteLesionada.IdParteLesionada  = 0;
         objManParteLesionada.StartPosition     = FormStartPosition.CenterParent;
         objManParteLesionada.ShowDialog();
         Cargar();
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        public void InicializarModificar()
        {
            if (gvParteLesionada.RowCount > 0)
            {
                ParteLesionadaBE objParteLesionada = new ParteLesionadaBE();
                objParteLesionada.IdParteLesionada   = int.Parse(gvParteLesionada.GetFocusedRowCellValue("IdParteLesionada").ToString());
                objParteLesionada.DescParteLesionada = gvParteLesionada.GetFocusedRowCellValue("DescParteLesionada").ToString();
                objParteLesionada.FlagEstado         = Convert.ToBoolean(gvParteLesionada.GetFocusedRowCellValue("FlagEstado").ToString());

                frmManParteLesionadaEdit objManParteLesionadaEdit = new frmManParteLesionadaEdit();
                objManParteLesionadaEdit.pOperacion        = frmManParteLesionadaEdit.Operacion.Modificar;
                objManParteLesionadaEdit.IdParteLesionada  = objParteLesionada.IdParteLesionada;
                objManParteLesionadaEdit.pParteLesionadaBE = objParteLesionada;
                objManParteLesionadaEdit.StartPosition     = FormStartPosition.CenterParent;
                objManParteLesionadaEdit.ShowDialog();

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