void ucGe_Menu_event_btnconsultar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { Info = (ct_punto_cargo_Info)gridView_Punto_Cargo.GetFocusedRow(); if (Info != null) { frm = new frmCon_Punto_Cargo_Mant_FJ(Cl_Enumeradores.eTipo_action.consultar); frm.Text = frm.Text + "***CONSULTAR REGISTRO***"; frm._SetInfo = Info; frm.Show(); frm.MdiParent = this.MdiParent; frm.event_frmCon_Punto_Cargo_Mant_FJ_FormClosing += frm_event_frmCon_Punto_Cargo_Mant_FormClosing; } else { MessageBox.Show("Seleccione un Registro a Mostrar", "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); } }
void ucGe_Menu_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { frm = new frmCon_Punto_Cargo_Mant_FJ(Cl_Enumeradores.eTipo_action.grabar); frm.Text = frm.Text + " ***NUEVO REGISTRO***"; frm.Show(); frm.MdiParent = this.MdiParent; frm.event_frmCon_Punto_Cargo_Mant_FJ_FormClosing += frm_event_frmCon_Punto_Cargo_Mant_FormClosing; } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }