void ucGe_Menu_Mantenimiento_x_usuario_event_btnNuevo_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         ofrm = new FrmGe_CatalogoTipo_man(Convert.ToInt32(lstbox_TipoCatalogo.SelectedValue));
         ofrm.Event_frmGe_CatalogoTipo_man_FormClosing += ofrm_Event_frmGe_CatalogoTipo_man_FormClosing;
         ofrm.setAccion(Info.General.Cl_Enumeradores.eTipo_action.grabar);
         ofrm.Show();
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Example #2
0
 void ucGe_Menu_Mantenimiento_x_usuario_event_btnModificar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         ofrm = new FrmGe_CatalogoTipo_man(Convert.ToInt32(listBoxTipo.SelectedValue));
         ofrm.Event_frmGe_CatalogoTipo_man_FormClosing += ofrm_Event_frmGe_CatalogoTipo_man_FormClosing;
         ofrm.setAccion(Info.General.Cl_Enumeradores.eTipo_action.actualizar);
         ofrm.SetInfo = gridViewcatalogoTipo.GetFocusedRow() as tb_Catalogo_Info;
         ofrm.Show();
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }