private void Llamar_formulario_tipo_gasto(Cl_Enumeradores.eTipo_action Accion)
 {
     try
     {
         frmCon_grupo_x_Tipo_Gasto_Mant frm_tipo_gasto = new frmCon_grupo_x_Tipo_Gasto_Mant();
         frm_tipo_gasto.Set_Accion(Accion);
         if (Accion != Info.General.Cl_Enumeradores.eTipo_action.grabar)
         {
             frm_tipo_gasto.Set_info(info_grupo_x_tipo_gasto);
         }
         frm_tipo_gasto.ShowDialog();
         cargar_combo();
     }
     catch (Exception ex)
     {
         Log_Error_bus.Log_Error(ex.ToString());
         MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Esempio n. 2
0
 private void Llamar_formulario(Cl_Enumeradores.eTipo_action Accion)
 {
     try
     {
         frmCon_grupo_x_Tipo_Gasto_Mant frm = new frmCon_grupo_x_Tipo_Gasto_Mant();
         frm.Set_Accion(Accion);
         if (Accion != Cl_Enumeradores.eTipo_action.grabar)
         {
             info_tipo_gasto = (ct_grupo_x_Tipo_Gasto_Info)gridViewTipo_gasto.GetFocusedRow();
             frm.Set_info(info_tipo_gasto);
         }
         frm.Show();
         frm.event_delegate_frmCon_grupo_x_Tipo_Gasto_Mant_FormClosing += frm_event_delegate_frmCon_grupo_x_Tipo_Gasto_Mant_FormClosing;
     }
     catch (Exception ex)
     {
         string NameMetodo = System.Reflection.MethodBase.GetCurrentMethod().Name + " " + this.Name;
         MessageBox.Show(NameMetodo + " - " + ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
         Log_Error_bus.Log_Error(NameMetodo + " - " + ex.ToString());
     }
 }