private async void cargarMedioPago() { try { medioPagos = await medioPagoModel.medioPagos(); } catch (Exception ex) { MessageBox.Show("Error: " + ex.Message, "Listar", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private async void cargarMedioPago() { try { medioPagos = await medioPagoModel.medioPagos(); this.cargarIngresoMenosEgreso(); } catch (Exception ex) { MessageBox.Show("Error: " + ex.Message, "Cargar Medio Pagos", MessageBoxButtons.OK, MessageBoxIcon.Warning); } }
private async void cargarMediosPago() { try { loadState(true); List <MedioPago> list = await medioPagoModel.medioPagos(); medioPago = list[0]; dynamic currentFecha = await fechaModel.fechaSistema(); dtpFechaInicio.Value = currentFecha.fecha; dtpFechaIngreso.Value = currentFecha.fecha; } catch (Exception ex) { MessageBox.Show("Upps! " + ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Warning); } finally { loadState(false); } }