private void bgwHuella_DoWork(object sender, DoWorkEventArgs e) { try { Lector.FrmCapturaHuella = this; Lector.TipoForm = 2; if (!Lector.Init()) { this.lblInstrucciones.Text = "No se puede iniciar la operación de captura."; this.lblInstrucciones.BackColor = Color.Red; } } catch (Exception ex) { LogError.AddExcFileTxt(ex, "frmCatEmpleadoHuella ~ bgwHuella_DoWork"); } }
private void IniciarForm() { try { this.ObtenerHoraServidor(); this.lblTitulo.Text = "Registrar " + DatosTipoRegistro.Descripcion; Lector.TipoForm = 1; Lector.FrmChecar = this; Lector.Close(); Lector.Init(); Lector.Start(); if (File.Exists(Path.Combine(System.Windows.Forms.Application.StartupPath, @"Resources\Documents\" + Comun.UrlLogo))) { this.pictureBox1.Image = Image.FromFile(Path.Combine(System.Windows.Forms.Application.StartupPath, @"Resources\Documents\" + Comun.UrlLogo)); } } catch (Exception ex) { throw ex; } }