private void tlbMenu_NewClick()
 {
     try
     {
         frmManTallaEdit objManTalla = new frmManTallaEdit();
         objManTalla.lstTalla      = mLista;
         objManTalla.pOperacion    = frmManTallaEdit.Operacion.Nuevo;
         objManTalla.IdTalla       = 0;
         objManTalla.StartPosition = FormStartPosition.CenterParent;
         objManTalla.ShowDialog();
         Cargar();
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        public void InicializarModificar()
        {
            if (gvTalla.RowCount > 0)
            {
                TallaBE objTalla = new TallaBE();

                objTalla.IdTalla = int.Parse(gvTalla.GetFocusedRowCellValue("IdTalla").ToString());

                frmManTallaEdit objManTallaEdit = new frmManTallaEdit();
                objManTallaEdit.pOperacion    = frmManTallaEdit.Operacion.Modificar;
                objManTallaEdit.IdTalla       = objTalla.IdTalla;
                objManTallaEdit.pTallaBE      = objTalla;
                objManTallaEdit.StartPosition = FormStartPosition.CenterParent;
                objManTallaEdit.ShowDialog();

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