예제 #1
0
        private void registrar_huella_php(string alumno)
        {
            try
            {
                objMethods.ShowWindowEnrollment(objReader);
                xml = objMethods.GetFingerprint_XML();
                using (var client = new WebClient())
                {
                    var values = new NameValueCollection();
                    values["cuenta"] = alumno;
                    values["huella"] = Base64Encode(xml);
                    var response = client.UploadValues("http://facite.uas.edu.mx/agenda/actualizar_huella.php", values);

                    var responseString = Encoding.Default.GetString(response);
                    MessageBox.Show(responseString);
                }
                //string res = PostMessageToURL(alumno, xml);

                /*if (new datos.Da_Alumnos().InsertarHuella(alumno, xml))
                 * {
                 *  MessageBox.Show("Huella registrada correctamente");
                 *  //ListarAlumnos();
                 * }*/
            }
            catch (System.Exception err)
            {
                MessageBox.Show(err.Message);
            }
        }
        private void btnVentana_Click(object sender, EventArgs e)
        {
            objMethods.ShowWindowEnrollment(objReader);
            xml = objMethods.GetFingerprint_XML();

            PersonalUAU.Clases.Persona objPersona = new PersonalUAU.Clases.Persona();
            objPersona.huella = xml;
            listPerson.Add(objPersona);
        }
예제 #3
0
 private void RegistrarHuella_Click(object sender, RoutedEventArgs e)
 {
     objMethods.ShowWindowEnrollment(objReader);
     xml = objMethods.GetFingerprint_XML();
 }