Beispiel #1
0
        public void connect_Device()
        {
            // CloseScanner();
            //Thread.Sleep(1000);
            //string deviceName = "FG_ZF10";
            DeviceIdentity selectedDI = new DeviceIdentity(); //Get selected Frame-Grabber

            selectedDI = DeviceIdentity.FG_ZF10;              //Get selected Frame-Grabber
            //DeviceIdentity selectedDI = (DeviceIdentity)xamlListBoxFG.SelectedItem; //Get selected Frame-Grabber
            //this.SelectedDeviceIdentity = selectedDI;

            DeviceInformations[] dinfos = FPScanner.GetAttachedDevices(selectedDI); //Get all Fingerprint Scanners
            DeviceInformations   dinfo  = dinfos.First();
            DeviceInfos          di     = new DeviceInfos(dinfo.index, dinfo.name);

            FingerPrintScanner = FPScanner.GetFPScanner(selectedDI, di.Index);

            //_fpScanner = FingerPrintScanner;
            ////use any assembly versions

            //RedirectAssembly("Dermalog.Imaging.Capturing");
            //RedirectAssembly("Dermalog.AFIS.FourprintSegmentation");
            //RedirectAssembly("Dermalog.AFIS.TwoPprintSegmentation");

            //RedirectAssembly("Dermalog.Afis.NistQualityCheck");
            //RedirectAssembly("Dermalog.AFIS.FingerCode3");



            //_afis = new LocalAFIS();
            //// DisplayMessage("Loading user database");
            // // lbStorage.Text = "Storage: " + _afis.StoragePath;
            // //toolTip1.SetToolTip(lbStorage, _afis.StoragePath);


            // //lbStorage.ToolTip = _afis.StoragePath;

            // UpdateUserList();
            //EnableGUI(false);
            //Thread.Sleep(500);
        }