public void StartEnrollment(Reader objCurrentReader, VistaRegistro objPrincipal)
 {
     InitializeObjects();
     this.objPrincipal          = objPrincipal;
     objVariables.currentReader = objCurrentReader;
     StartThreadEnrollment();
 }
Esempio n. 2
0
        /// <summary>
        /// Starts a thread and show a emergent window of enrollment users and returns a xml generate by the library . </summary>
        /// <returns>
        /// xml string </returns>
        public void ShowWindowEnrollment(Reader objReader)
        {
            Registro.VistaRegistro Registrar = new Registro.VistaRegistro(objReader);

            bool?resultado = Registrar.ShowDialog();

            switch (resultado)
            {
            case true:
                this.xml = Registrar.xml;
                break;

            case false:
                MessageBox.Show("No se hizo ningún registro de huella.",
                                "Aviso",
                                MessageBoxButtons.OK,
                                MessageBoxIcon.Exclamation,
                                MessageBoxDefaultButton.Button1);
                break;

            default:
                break;
            }
        }