void ucGe_Menu_Mantenimiento_x_usuario_event_btnAnular_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { if (info.IdTipoDepreciacion != 0) { frmAF_Tipo_Depreciacion frm = new frmAF_Tipo_Depreciacion(); frm.MdiParent = this.MdiParent; frm.set_Accion(Cl_Enumeradores.eTipo_action.Anular); frm.set_Af_Tipo_Depreciacion(info); frm.Show(); frm.event_frmAF_Tipo_Depreciacion_FormClosing += new frmAF_Tipo_Depreciacion.delegate_frmAF_Tipo_Depreciacion_FormClosing(frm_event_frmAF_Tipo_Depreciacion_FormClosing); } else { //Por_favor_seleccione_item_a_anular MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Por_favor_seleccione_item_a_anular), 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_Tipo_Depreciacion frm = new frmAF_Tipo_Depreciacion(); frm.MdiParent = this.MdiParent; frm.set_Accion(Cl_Enumeradores.eTipo_action.grabar); frm.Show(); frm.event_frmAF_Tipo_Depreciacion_FormClosing += new frmAF_Tipo_Depreciacion.delegate_frmAF_Tipo_Depreciacion_FormClosing(frm_event_frmAF_Tipo_Depreciacion_FormClosing); } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); } }