Exemplo n.º 1
0
        void mtlUpload_Click(object sender, EventArgs e)
        {
            bool flag;
            var  frm = new frmModuleDisplay(4, out flag);

            if (!flag)
            {
                return;
            }
            frm.Show();
            frm.Location = new Point(Width, 0);
            var t = new Transition(new TransitionType_EaseInEaseOut(150));

            t.add(frm, "Left", 0);
            t.run();
        }
Exemplo n.º 2
0
        private void mtlEnroll_Click(object sender, EventArgs e)
        {
            #region Choose Scanner

            //try
            //{
            //    var chooseScannerForm = new frmChooseScanner();
            //    if (chooseScannerForm.ShowDialog() == DialogResult.OK)
            //    {
            //        try
            //        {
            //            //engine = new Neurotec.Biometrics.Nffv(chooseScannerForm.FingerprintDatabase, chooseScannerForm.FingerprintDatabasePassword, chooseScannerForm.ScannerString);
            //        }
            //        catch (Exception)
            //        {
            //            MessageBox.Show(@"Failed to initialize Nffv or create/load database.\r\n" +
            //            @"Please check if:\r\n - Provided password is correct;\r\n - Database filename is correct;\r\n" +
            //            @" - Scanners are used properly.\r\n", @"Nffv C# Sample", MessageBoxButtons.OK, MessageBoxIcon.Error);
            //            return;
            //        }
            //        //Application.Run(new MainForm(engine, chooseScannerForm.UserDatabase));
            //    }
            //}
            //catch (Exception ex)
            //{
            //    MessageBox.Show(
            //        string.Format("An error has occured: {0}", ex.Message), @"Nffv C# Sample",
            //        MessageBoxButtons.OK, MessageBoxIcon.Error);
            //}
            //finally
            //{
            //    if (engine != null)
            //    {
            //        engine.Dispose();
            //    }
            //}

            #endregion


            bool flag;
            var  frm = new frmModuleDisplay(1, out flag);
            if (!flag)
            {
                return;
            }
            Utils.CapturedTemplates        = new Template[10];
            Utils.CaptureImage             = null;
            Utils.BiometricInfo            = new BiometricInfo();
            Utils.PreviewBeneficiaryRegObj = new PreviewBeneficiaryRegObj();
            Utils.BeneficiaryRegObj        = new BeneficiaryRegObj
            {
                FingerPrintTemplate         = new List <byte[]>(),
                CapturedFingerPrintTemplate = new Template[10]
            };
            frm.Show();
            frm.Location = new Point(Width, 0);
            var t = new Transition(new TransitionType_EaseInEaseOut(150));
            t.add(frm, "Left", 0);
            t.run();
        }