private void ucGe_Menu_event_btnAnular_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { try { info = (ro_descuento_no_planificados_Info)gridView_descuento.GetFocusedRow(); if (info == null) { MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Seleccione_un_registro), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } if (info.Estado == false) { MessageBox.Show(param.Get_Mensaje_sys(enum_Mensajes_sys.Ya_se_encuentra_anulado), param.Nombre_sistema, MessageBoxButtons.OK, MessageBoxIcon.Information); return; } frm = new frm_Ro_Planificacion_Descuento_Mant(); frm.Accion = Cl_Enumeradores.eTipo_action.Anular; frm.MdiParent = this.MdiParent; frm.Set(info); frm.Show(); // frm.event_frm_Ro_Planificacion_Descuento_Mant_FormClosing += frm_event_frm_Ro_Planificacion_Descuento_Mant_FormClosing; } 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 { frm = new frm_Ro_Planificacion_Descuento_Mant(); frm.Accion = Cl_Enumeradores.eTipo_action.grabar; frm.MdiParent = this.MdiParent; frm.Show(); // frm.event_frm_Ro_Planificacion_Descuento_Mant_FormClosing += frm_event_frm_Ro_Planificacion_Descuento_Mant_FormClosing; } catch (Exception ex) { MessageBox.Show(ex.Message); Log_Error_bus.Log_Error(ex.Message); } }