Beispiel #1
0
        private void btn_enrol_Click(object sender, EventArgs e)
        {
            EnrollmentWindow enrollmentWindow = new EnrollmentWindow();

            //enrollmentWindow.Owner = this;
            enrollmentWindow.ShowDialog();
        }
        private void btnEnroll_Click(object sender, RoutedEventArgs e)
        {
            StopCapturing();
            ResetGUI();

            DisplayMessage("User enrollment");
            xamlListBoxUsers.SelectedIndex = -1; //Deselect User

            EnrollmentWindow enrollmentWindow = new EnrollmentWindow(_fpScanner, _afis);

            enrollmentWindow.Owner = this;
            enrollmentWindow.ShowDialog();

            if (enrollmentWindow.DialogResult.HasValue && enrollmentWindow.DialogResult.Value)
            {
                UpdateUserList();
            }

            DisplayMessage("Select User to verify");
        }