private void ucGe_Menu_event_btnconsultar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { info_modulo = (tb_modulo_Info)gridViewmodulo.GetFocusedRow(); if (info_modulo != null) { frm = new FrmGE_ModuloMant(); frm.event_FrmGE_ModuloMant_FormClosing += frm_event_FrmGE_ModuloMant_FormClosing; frm.Text = frm.Text + "***CONSULTAR REGISTRO***"; frm.info_mod = info_modulo; frm.set_Modulo(info_modulo); frm.set_Accion(Cl_Enumeradores.eTipo_action.consultar); frm.ShowDialog(); } else { MessageBox.Show("Seleccione un Registro ", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void ucGe_Menu_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { frm = new FrmGE_ModuloMant(); frm.event_FrmGE_ModuloMant_FormClosing += frm_event_FrmGE_ModuloMant_FormClosing; frm.Text = frm.Text + "***NUEVO REGISTRO***"; frm.info_mod = info_modulo; frm.set_Accion(Cl_Enumeradores.eTipo_action.grabar); frm.ShowDialog(); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }