private void ucGe_Menu_Mantenimiento_x_usuario1_event_btnAnular_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { InfoAf = (Af_Activo_fijo_Categoria_Info)gridViewCategoriaAF.GetFocusedRow(); if (InfoAf != null) { frm = new frmAf_Activo_fijo_Categoria_Mant(); frm.event_frmAf_Activo_fijo_Categoria_Mant_FormClosing += frm_event_frmAf_Activo_fijo_Categoria_Mant_FormClosing; frm.Text = frm.Text + "***ANULAR REGISTRO***"; frm.set_Accion(Cl_Enumeradores.eTipo_action.Anular); frm.Set_Info_Categoria(InfoAf); frm.Show(); frm.MdiParent = this.MdiParent; } else { MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Por_favor_seleccione_item_a_anular), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Exclamation); return; } } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void ucGe_Menu_Mantenimiento_x_usuario1_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { frm = new frmAf_Activo_fijo_Categoria_Mant(); frm.set_Accion(Cl_Enumeradores.eTipo_action.grabar); frm.Text = frm.Text + "*** NUEVO REGISTRO ***"; frm.Show(); frm.MdiParent = this.MdiParent; frm.event_frmAf_Activo_fijo_Categoria_Mant_FormClosing += frm_event_frmAf_Activo_fijo_Categoria_Mant_FormClosing; } catch (Exception ex) { Log_Error_bus.Log_Error(ex.ToString()); MessageBox.Show(ex.ToString(), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); } }