void ucGe_Menu_Mantenimiento_x_usuario_event_btnconsultar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { Info = (cp_retencion_Info)this.gridViewConsRet.GetFocusedRow(); if (Info == null) { MessageBox.Show("Seleccione un Registro", "Sistemas", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } else { frmMant = new frmCP_RetencionMant(); frmMant.Set_Accion(Cl_Enumeradores.eTipo_action.consultar); frmMant.event_frmCP_RetencionMant_FormClosing += frmMant_event_frmCP_RetencionMant_FormClosing; frmMant.Text = frmMant.Text + " ***CONSULTAR REGISTRO***"; frmMant.Set_Info_Retencion(Info); frmMant.Show(); } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
void ucGe_Menu_Mantenimiento_x_usuario_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { frmMant = new frmCP_RetencionMant(); frmMant.Set_Accion(Cl_Enumeradores.eTipo_action.grabar); frmMant.event_frmCP_RetencionMant_FormClosing += frmMant_event_frmCP_RetencionMant_FormClosing; frmMant.Text = frmMant.Text + " ***NUEVO REGISTRO***"; frmMant.Show(); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }