async void init(string query)
        {
            Task <List <ObjetoError> > pl = ConsultaRegistro.getJsonRegistro(query);
            List <ObjetoError>         p  = await pl;

            error = p[0];

            if (error.Status.Equals("correcto"))
            {
                System.Diagnostics.Debug.WriteLine("idxz ->" + Application.Current.Properties["id"]);
                //DisplayAlert("Alert", nombre, "OK");
                await Navigation.PushAsync(new SubirFoto());
            }
            else
            {
                await DisplayAlert("Ups", error.Mensaje, "OK");
            }
        }
Example #2
0
        async void init(string query)
        {
            Task <List <ObjetoError> > pl = ConsultaRegistro.getJsonRegistro(query);
            List <ObjetoError>         p  = await pl;

            error = p[0];

            if (error.Status.Equals("correcto"))
            {
                Application.Current.Properties["id"] = error.Mensaje;

                Application.Current.Properties["usuario"] = correo;
                await Application.Current.SavePropertiesAsync();

                await Navigation.PushAsync(new DatosPersonalesSinNomb());
            }
            else
            {
                DependencyService.Get <IMessage>().LongAlert(error.Mensaje);
            }
        }