public SelectDeviceWindow_new(DeviceIdentity selectedDeviceIdentity, VerifyZF10 owner)
        {
            _selectedDeviceIdentity = selectedDeviceIdentity;
            //this.pa = owner;
            NewMethod_selectDevice();
            //InitializeComponent();

            //this.Closing += SelectDeviceWindow_Closing;

            //displayMessage("Loading Devices");
            //xamlButtonOK.Enabled = false;

            //_thread = new Thread(() =>
            //{
            //    try
            //    {
            //        DeviceInformations[] dinfos = FPScanner.GetAttachedDevices(_selectedDeviceIdentity); //Get all Fingerprint Scanners

            //        //Display all Fingerprint-Scanners in GUI
            //        // Application.Current.Dispatcher.BeginInvoke((Action)(() =>
            //        {
            //            xamlProgressBar.Visible = false;
            //            displayMessage("Select Fingerprint-Scanner");
            //            foreach (DeviceInformations dinfo in dinfos)
            //            {
            //                DeviceInfos di = new DeviceInfos(dinfo.index, dinfo.name);
            //                xamlListBoxDevices.Items.Add(di);
            //            }
            //            if (xamlListBoxDevices.Items.Count > 0)
            //            {
            //                xamlListBoxDevices.SelectedIndex = 0;

            //            }

            //            //Close();
            //        }

            //        //));
            //        //NewMethodcaptureDevice_();

            //    }
            //    catch (Exception ex)
            //    {
            //        //Application.Current.Dispatcher.BeginInvoke((Action)(() =>
            //        {
            //            rDialogResult = false;
            //            MessageBox.Show(ex.Message, "ERROR");
            //        }

            //        //));
            //    }
            //});
            //_thread.Start();
            ////Close();
        }
Esempio n. 2
0
        public SelectFGWindow_new(VerifyZF10 owner)
        {
            //this.Owner = owner;

            NewMethod_InitializeComponent();


            //InitializeComponent();

            //displayMessage("Select Frame-Grabber");
            //xamlButtonOK.Enabled = false;

            //DeviceIdentity[] dis = FPScanner.GetDevices();
            //xamlListBoxFG.DataSource = dis;
        }