private void ucGe_Menu_event_btnAnular_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { info = (ro_parametro_x_pago_variable_Info)gridView_parametros_variables.GetFocusedRow(); if (info.Estado == false) { MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.El_registro_se_encuentra_anulado), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (info == null) { MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Seleccione_un_registro), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } frmRo_Parametro_Pago_Variable_Adm_Mant frm = new frmRo_Parametro_Pago_Variable_Adm_Mant(); frm.Accion = Cl_Enumeradores.eTipo_action.Anular; frm.MdiParent = this.MdiParent; frm.Set(info); frm.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); Log_Error_bus.Log_Error(ex.Message); } }
private void ucGe_Menu_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { frmRo_Parametro_Pago_Variable_Adm_Mant frm = new frmRo_Parametro_Pago_Variable_Adm_Mant(); frm.Accion = Cl_Enumeradores.eTipo_action.grabar; frm.MdiParent = this.MdiParent; frm.Show(); } catch (Exception ex) { MessageBox.Show(ex.Message); Log_Error_bus.Log_Error(ex.Message); } }