Exemple #1
0
        protected async override void OnNavigatedTo(NavigationEventArgs e)
        {
            producto             = e.Parameter as Producto;
            textNombre.Text      = producto.Nombre;
            textDescripcion.Text = producto.Descripcion;
            textPrecio.Text      = "Precio " + producto.Precio.ToString() + " Bs";
            if (producto.Cantidad == 1)
            {
                textCantidad.Text = producto.Cantidad.ToString() + " unidad disponible";
            }
            else
            {
                textCantidad.Text = producto.Cantidad.ToString() + " unidades disponibles";
            }
            if (producto.Cantidad == 0)
            {
                textCantidad.Text = "Producto Agotado";
            }
            producto.Calificaciones = await servicioAei.buscarCalificacionProductoAsync(producto.Id);

            cargarComentarios();
            this.setImagenProducto("http://" + Constante.Ip + ":8080/" + producto.ImagenDetalle);
        }