コード例 #1
0
        private void Registration_Load(object sender, System.EventArgs e)
        {
            this.nameTextBox.Focus();
            txtEnroll.Text    = string.Empty;
            preenrollmentFmds = new List <Fmd>();
            count             = 0;

            SendMessage(Action.SendMessage, "Place your Right Thumb on the device.");

            if (!_sender.OpenReader())
            {
                //this.Close();
                this.txtEnroll.Visible          = false;
                this.enrollPictureBox.Visible   = false;
                this.deviceNotConnected.Visible = true;
            }
            else
            {
                this.deviceNotConnected.Visible = false;
            }

            if (!_sender.StartCaptureAsync(this.OnCaptured))
            {
                //this.Close();
                this.txtEnroll.Visible          = false;
                this.enrollPictureBox.Visible   = false;
                this.deviceNotConnected.Visible = true;
            }
            else
            {
                this.deviceNotConnected.Visible = false;
            }
        }
コード例 #2
0
        private void Edit_Data_Load(object sender, EventArgs e)
        {
            this.nameTextBox.Focus();
            preenrollmentFmds = new List <Fmd>();

            GetData();

            SendMessage(Action.SendMessage, "Place your Right Thumb on the device.");

            if (!_sender.OpenReader())
            {
                //this.Close();
                this.txtEnroll.Visible          = false;
                this.enrollPictureBox.Visible   = false;
                this.deviceNotConnected.Visible = true;
            }
            else
            {
                this.deviceNotConnected.Visible = false;
            }

            if (!_sender.StartCaptureAsync(this.OnCaptured))
            {
                //this.Close();
                this.txtEnroll.Visible          = false;
                this.enrollPictureBox.Visible   = false;
                this.deviceNotConnected.Visible = true;
            }
            else
            {
                this.deviceNotConnected.Visible = false;
            }
        }
コード例 #3
0
ファイル: Capture.cs プロジェクト: dlineros/finger
        /// <summary>
        /// Initialize the form.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Capture_Load(object sender, EventArgs e)
        {
            // Reset variables
            pbFingerprint.Image = null;

            if (!_sender.OpenReader())
            {
                this.Close();
            }

            if (!_sender.StartCaptureAsync(this.OnCaptured))
            {
                this.Close();
            }
        }
コード例 #4
0
        /// <summary>
        /// Initialize the form.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Identification_Load(object sender, System.EventArgs e)
        {
            getData();

            txtIdentify.Text = string.Empty;
            anyFinger        = null;

            if (!_sender.OpenReader())
            {
                this.Close();
            }

            if (!_sender.StartCaptureAsync(this.OnCaptured))
            {
                this.Close();
            }
        }
コード例 #5
0
ファイル: Enrollment.cs プロジェクト: dlineros/finger
        /// <summary>
        /// Initialize the form.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Enrollment_Load(object sender, System.EventArgs e)
        {
            txtEnroll.Text    = string.Empty;
            preenrollmentFmds = new List <Fmd>();
            count             = 0;

            SendMessage(Action.SendMessage, "Place a finger on the reader.");

            if (!_sender.OpenReader())
            {
                this.Close();
            }

            if (!_sender.StartCaptureAsync(this.OnCaptured))
            {
                this.Close();
            }
        }
コード例 #6
0
        /// <summary>
        /// Initialize the form.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Verification_Load(object sender, System.EventArgs e)
        {
            txtVerify.Text = string.Empty;
            firstFinger    = null;
            secondFinger   = null;
            count          = 0;

            SendMessage(Action.SendMessage, "Place a finger on the reader.");

            if (!_sender.OpenReader())
            {
                this.Close();
            }

            if (!_sender.StartCaptureAsync(this.OnCaptured))
            {
                this.Close();
            }
        }
コード例 #7
0
ファイル: Identification.cs プロジェクト: dlineros/finger
        /// <summary>
        /// Initialize the form.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Identification_Load(object sender, System.EventArgs e)
        {
            txtIdentify.Text = string.Empty;
            rightIndex       = null;
            rightThumb       = null;
            anyFinger        = null;
            count            = 0;

            SendMessage(Action.SendMessage, "Place your right index finger on the reader.");

            if (!_sender.OpenReader())
            {
                this.Close();
            }

            if (!_sender.StartCaptureAsync(this.OnCaptured))
            {
                this.Close();
            }
        }
コード例 #8
0
        /// <summary>
        /// Initialize the form.
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void Capture_Load(object sender, EventArgs e)
        {
            try
            {
                // Reset variables
                pbFingerprint.Image = null;

                if (!_sender.OpenReader())
                {
                    this.Close();
                }

                if (!_sender.StartCaptureAsync(this.OnCaptured))
                {
                    this.Close();
                }
            }
            catch (Exception ex) {
                MessageBox.Show(ex.Message);
                this.Close();
            }
        }