private void tlbMenu_NewClick()
 {
     try
     {
         frmRegCommimentEdit objManClient = new frmRegCommimentEdit();
         objManClient.lstCommiment  = mLista;
         objManClient.pOperacion    = frmRegCommimentEdit.Operacion.Nuevo;
         objManClient.IdCommiment   = 0;
         objManClient.IdClient      = Convert.ToInt32(cboClient.EditValue);
         objManClient.StartPosition = FormStartPosition.CenterParent;
         objManClient.ShowDialog();
         Cargar();
     }
     catch (Exception ex)
     {
         XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
        public void InicializarModificar()
        {
            if (gvCommiment.RowCount > 0)
            {
                CommimentBE objCommiment = new CommimentBE();

                objCommiment.IdCommiment = int.Parse(gvCommiment.GetFocusedRowCellValue("IdCommiment").ToString());

                frmRegCommimentEdit objManCommimentEdit = new frmRegCommimentEdit();
                objManCommimentEdit.pOperacion    = frmRegCommimentEdit.Operacion.Modificar;
                objManCommimentEdit.IdCommiment   = objCommiment.IdCommiment;
                objManCommimentEdit.StartPosition = FormStartPosition.CenterParent;
                objManCommimentEdit.ShowDialog();

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