void ucGe_Menu_Mantenimiento_x_usuario_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { frmGe_MantPersona frMPer = new frmGe_MantPersona(); frMPer.event_frmGe_MantPersona_FormClosing += new frmGe_MantPersona.delegate_frmGe_MantPersona_FormClosing(frMPer_event_frmGe_MantPersona_FormClosing); frMPer.set_Accion(Cl_Enumeradores.eTipo_action.grabar); frMPer.Text = frMPer.Text + " ***NUEVO REGISTRO***"; frMPer.MdiParent = this.MdiParent; frMPer.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_btnAnular_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { _personaI = (tb_persona_Info)gridViewPersona.GetFocusedRow(); frmGe_MantPersona frMPer = new frmGe_MantPersona(); frMPer.event_frmGe_MantPersona_FormClosing += new frmGe_MantPersona.delegate_frmGe_MantPersona_FormClosing(frMPer_event_frmGe_MantPersona_FormClosing); frMPer.set_Accion(Cl_Enumeradores.eTipo_action.Anular); frMPer.set_Persona(_personaI); frMPer.Text = frMPer.Text + " ***Anular***"; frMPer.MdiParent = this.MdiParent; frMPer.Show(); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); } }