void ucGe_Menu_Mantenimiento_x_usuario_event_btnModificar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (info.IdActivoFijoTipo != 0) { frmAF_ActivoFijoTipo_Mant frm = new frmAF_ActivoFijoTipo_Mant(); frm.MdiParent = this.MdiParent; frm.set_Accion(Cl_Enumeradores.eTipo_action.actualizar); frm.set_ActivoFijoTipo(info); frm.Show(); frm.event_frmAF_ActivoFijoTipo_Mant_FormClosing += new frmAF_ActivoFijoTipo_Mant.delegate_frmAF_ActivoFijoTipo_Mant_FormClosing(frm_event_frmAF_ActivoFijoTipo_Mant_FormClosing); } else { //Por_favor_seleccione_item_a_modi MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Por_favor_seleccione_item_a_modi), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
void ucGe_Menu_Mantenimiento_x_usuario_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { frmAF_ActivoFijoTipo_Mant frm = new frmAF_ActivoFijoTipo_Mant(); frm.MdiParent = this.MdiParent; frm.set_Accion(Cl_Enumeradores.eTipo_action.grabar); frm.Show(); frm.event_frmAF_ActivoFijoTipo_Mant_FormClosing += new frmAF_ActivoFijoTipo_Mant.delegate_frmAF_ActivoFijoTipo_Mant_FormClosing(frm_event_frmAF_ActivoFijoTipo_Mant_FormClosing); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); load_ActivoFijoTipo(); } }