private void tlbMenu_NewClick()
 {
     try
     {
         frmManTablaEdit objManTabla = new frmManTablaEdit();
         objManTabla.lstTabla      = mLista;
         objManTabla.pOperacion    = frmManTablaEdit.Operacion.Nuevo;
         objManTabla.IdTablet      = 0;
         objManTabla.StartPosition = FormStartPosition.CenterParent;
         objManTabla.ShowDialog();
         Cargar();
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        public void InicializarModificar()
        {
            if (gvTabla.RowCount > 0)
            {
                TabletBE objTabla = new TabletBE();
                objTabla.IdTablet   = int.Parse(gvTabla.GetFocusedRowCellValue("IdTablet").ToString());
                objTabla.NameTablet = gvTabla.GetFocusedRowCellValue("NameTablet").ToString();
                objTabla.FlagState  = Convert.ToBoolean(gvTabla.GetFocusedRowCellValue("FlagState").ToString());

                frmManTablaEdit objManTablaEdit = new frmManTablaEdit();
                objManTablaEdit.pOperacion    = frmManTablaEdit.Operacion.Modificar;
                objManTablaEdit.IdTablet      = objTabla.IdTablet;
                objManTablaEdit.pTabletBE     = objTabla;
                objManTablaEdit.StartPosition = FormStartPosition.CenterParent;
                objManTablaEdit.ShowDialog();

                Cargar();
            }
            else
            {
                MessageBox.Show("Edit");
            }
        }