예제 #1
0
 private async void cargarMedioPago()
 {
     try
     {
         medioPagos = await medioPagoModel.medioPagos();
     }
     catch (Exception ex)
     {
         MessageBox.Show("Error: " + ex.Message, "Listar", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
예제 #2
0
        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);
            }
        }
예제 #3
0
        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);
            }
        }