private async void frmBienvenida_Load(object sender, EventArgs e) { lblUsuario.Text = Program.Usuario.Usuario; this.Opacity = 0.0; circularProgressBar1.Value = 0; circularProgressBar1.Minimum = 0; circularProgressBar1.Maximum = 100; timer1.Start(); try { await funciones.ReviewEmpeños(); } catch (Exception ex) { } }
private async void frmArqueo_Load(object sender, EventArgs e) { try { await funciones.ReviewEmpeños(); empeños = await _context.Empenos.Where(x => !x.IsDelete && (x.Estado == Estado.Vigente || x.Estado == Estado.Pendiente || x.Estado == Estado.Vencido) && (!x.Retirado || x.FechaRetiro == null) && (!x.RetiradoAdministrador || x.FechaRetiroAdministrador == null)) .Include(x => x.Intereses).ToListAsync(); configuracion = _context.Configuraciones.FirstOrDefault(); LoadDetalle(); } catch (Exception) { MessageBox.Show("Error"); } }
private async void frmArqueo_Load(object sender, EventArgs e) { try { await funciones.ReviewEmpeños(); empeños = await _context.Empenos.Where(x => !x.IsDelete && x.Estado == Estado.Vencido && !x.Retirado && x.FechaRetiro == null && !x.RetiradoAdministrador && x.FechaRetiroAdministrador == null) .Include(x => x.Intereses).ToListAsync(); configuracion = _context.Configuraciones.FirstOrDefault(); LoadDetalle(); dtDesde.Value = DateTime.Today; dtHasta.Value = DateTime.Today; } catch (Exception) { MessageBox.Show("Error"); } }