/// <summary>
 /// Constructor
 /// </summary>
 public frmRegistroEmpleado(Empleado oEmpleado = null)
 {
     InitializeComponent();
     this.oEscanner = new ClsEscanner();
     this.oEscanner.iniciarScanner();
     this.cmbDedos.DataSource    = Enum.GetValues(typeof(Huella.Dedo));
     this.cmbDedos.SelectedIndex = 0;
     if (oEmpleado == null)
     {
         this.oEmpleado = new Empleado();
     }
     else
     {
         this.oEmpleado = oEmpleado;
         fillGridView();
     }
     this.lstEmpleados = new List <Logica.Empleado>();
     setBinding();
 }
Exemplo n.º 2
0
        public frmRegistro(List <Empleado> lstEmpleados)
        {
            this.lstEmpleados = lstEmpleados;
            InitializeComponent();
            this.timer1.Interval = 1000;
            this.lblReloj.Text   = DateTime.Now.ToLongTimeString();
            timer1.Start();
            timerLector.Start();
            this.oEscanner = new ClsEscanner();
            if (!this.oEscanner.iniciarScanner())
            {
                lblMensaje.Text = "Escanner no encontrado";
            }

            this.oIdentificacion = new ClsIdentificacion(ref this.lstEmpleados);
            this.oIdentificacion.crearDataBase();
            this.Player          = new SoundPlayer();
            Player.SoundLocation = @"C:\Windows\Media\chimes.wav";
        }