Beispiel #1
0
        void On_ListaPedidos_row_selected(object o, RowSelectedArgs args)
        {
            if (args.Row == null)
            {
                Detalles.Visible         = false;
                SeleccionarAlert.Visible = true;
                return;
            }
            var user = DomiciliosApp.ClienteActual as Comprador;

            MostrarDetalles(user.HistorialPedidos[args.Row.Index]);

            Detalles.Visible         = true;
            SeleccionarAlert.Visible = false;
        }
Beispiel #2
0
        void On_ListaPedidos_row_selected(object o, RowSelectedArgs args)
        {
            if (args.Row == null)
            {
                Detalles.Visible         = false;
                SeleccionarAlert.Visible = true;
                return;
            }

            var widget   = args.Row.Child as ProductoWidget;
            var producto = widget.Producto;

            MostrarDetalles(producto);
            Detalles.Visible         = true;
            SeleccionarAlert.Visible = false;
        }
Beispiel #3
0
        /// <summary>
        /// Muestra el panel de detalles y actualiza la información
        /// </summary>
        void On_ListaPedidos_row_selected(object o, RowSelectedArgs args)
        {
            if (args.Row == null)
            {
                SeleccionarAlert.Visible = true;
                Detalles.Visible         = false;
                return;
            }

            var widget = args.Row.Child as ProductoWidget;
            var pedido = Carrito.Contiene(widget.Producto);

            //actualizamos propiedades
            ActualizarDetalles(pedido);

            SeleccionarAlert.Visible = false;
            Detalles.Visible         = true;
        }