public CheckoutPopup(Popup padre, ListaCompraPage father)
 {
     this.father = father;
     if (padre == null) throw new ArgumentNullException("Debe asignar un Popup al controlador");
     this.popup = padre;
     this.InitializeComponent();
     cargarCombos();
 }
 public CheckoutPopup(Popup padre, ListaCompraPage father)
 {
     this.father = father;
     if (padre == null)
     {
         throw new ArgumentNullException("Debe asignar un Popup al controlador");
     }
     this.popup = padre;
     this.InitializeComponent();
     cargarCombos();
 }
Example #3
0
        public ItemCompra(int indexProducto, ListaCompraPage padre, bool isCarrito)
        {
            this.InitializeComponent();
            this.padre = padre;
            this.indexProducto = indexProducto;

            if(isCarrito)
            {
                producto = BufferUsuario.Usuario.Carrito.Productos.ElementAt(indexProducto).Producto;
                detalle = BufferUsuario.Usuario.Carrito.Productos.ElementAt(indexProducto);
            }


            textoNombreProducto.Text = detalle.Cantidad + " " + producto.Nombre;
            this.setImagenProducto("http://" + Constante.Ip + ":8080/" + producto.ImagenDetalle);
        }
        public ItemCompra(int indexProducto, ListaCompraPage padre, bool isCarrito)
        {
            this.InitializeComponent();
            this.padre         = padre;
            this.indexProducto = indexProducto;

            if (isCarrito)
            {
                producto = BufferUsuario.Usuario.Carrito.Productos.ElementAt(indexProducto).Producto;
                detalle  = BufferUsuario.Usuario.Carrito.Productos.ElementAt(indexProducto);
            }


            textoNombreProducto.Text = detalle.Cantidad + " " + producto.Nombre;
            this.setImagenProducto("http://" + Constante.Ip + ":8080/" + producto.ImagenDetalle);
        }