Beispiel #1
0
        private void frmCheckin_Load(object sender, EventArgs e)
        {
            CheckForIllegalCrossThreadCalls = true;
            btnBuscar.BackColor             = Color.FromArgb(28, 49, 68);
            button1.BackColor = Color.FromArgb(28, 49, 68);
            toolTip1.SetToolTip(btnBuscar, "Presione Clic aqui para Iniciar la captura de huella");
            toolTip1.SetToolTip(button1, "Presione Clic aqui para Confirmar el Check-In");
            lbDatabase = new ListBox();

            foreach (NffvUser engineUser in _engine.Users)
            {
                string     _id      = engineUser.Id.ToString();
                UserRecord _userRec = _userDB.Lookup(engineUser.Id);

                if (_userRec != null)
                {
                    _id = _userRec.Name;
                }
                lbDatabase.Items.Add(new CData(engineUser, _id));
            }

            if (lbDatabase.Items.Count > 0)
            {
                lbDatabase.SelectedIndex = 0;
            }
        }
Beispiel #2
0
        private void frmInicio_Load(object sender, EventArgs e)
        {
            CheckForIllegalCrossThreadCalls = true;
            btnEliminarTodos.BackColor      = Color.FromArgb(28, 49, 68);
            btnHacerToma.BackColor          = Color.FromArgb(28, 49, 68);
            btnVerificar.BackColor          = Color.FromArgb(28, 49, 68);
            foreach (NffvUser engineUser in _engine.Users)
            {
                string     _id      = engineUser.Id.ToString();
                UserRecord _userRec = _userDB.Lookup(engineUser.Id);

                if (_userRec != null)
                {
                    _id = _userRec.Name;
                }
                lbDatabase.Items.Add(new CData(engineUser, _id));
            }

            if (lbDatabase.Items.Count > 0)
            {
                lbDatabase.SelectedIndex = 0;
            }
        }