private void btnCancelar_Click(object sender, EventArgs e) { try { this.Lector.Stop(); Lector.Template = null; Lector = new LectorHuella(); this.DialogResult = DialogResult.Cancel; } catch (Exception ex) { LogError.AddExcFileTxt(ex, "frmChecarEntradaSalida ~ btnCancelar_Click"); MessageBox.Show(Comun.MensajeError, Comun.Sistema, MessageBoxButtons.OK, MessageBoxIcon.Error); } }