コード例 #1
0
        public override void Process(DPFP.Sample Sample)
        {
            try
            {
                base.Process(Sample);
                frmMain _frm  = this._ParentForm;
                byte[]  _byte = null;
                Sample.Serialize(ref _byte);

                //Wait Start

                this.Invoke(new Function(delegate()
                {
                    this.lblPlsWait.Visible = true;
                }));


                //Profile info = zsi.PhotoFingCapture.Models.DataControllers.dcProfile_SQL.VerifyBiometricsData(0, _byte);
                //Profile info = zsi.dtrs.Models.DataControllers.dcProfile_SQL.VerifyBiometricsData(_byte);


                //WaitStop
                this.Invoke(new Function(delegate()
                {
                    this.lblPlsWait.Visible = false;
                }));

                /*
                 *  if (info.ProfileId > 0)
                 *  {
                 *      ProcessProfile(info);
                 *  }
                 *  else
                 *  {
                 *      this.Invoke(new Function(delegate()
                 *      {
                 *          txtName.Text = "Finger not identified";
                 *          pbProfileImage.Image = zsi.PhotoFingCapture.Util.GetNoPhoto();
                 *      }));
                 *
                 *  }
                 */
                //base.Dispose();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }
コード例 #2
0
ファイル: frmVerification.cs プロジェクト: jeynerm/zsicam
        public override void Process(DPFP.Sample Sample)
        {
            try
            {
                base.Process(Sample);
                frmMain _frm  = this._ParentForm;
                byte[]  _byte = null;
                Sample.Serialize(ref _byte);

                //Wait Start

                this.Invoke(new Function(delegate()
                {
                    this.lblPlsWait.Visible = true;
                }));


                Profile info = zsi.PhotoFingCapture.Models.DataControllers.dcProfile_SQL.VerifyBiometricsData(GetFingNo(), _byte);

                //WaitStop
                this.Invoke(new Function(delegate()
                {
                    this.lblPlsWait.Visible = false;
                }));


                if (info.ProfileId > 0)
                {
                    ProcessProfile(info);
                }
                else
                {
                    MessageBox.Show("Finger not identified");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }