Exemplo n.º 1
0
 /// <summary>
 /// Updates the product lines.
 /// </summary>
 /// <param name="shoppingCart">The shoppingCart.</param>
 protected void UpdateProductLines(DomainModel.Carts.ShoppingCart shoppingCart)
 {
     this.UcProductsListView.ProductLines = shoppingCart.ShoppingCartLines;
     this.UcProductsListView.Currency     = shoppingCart.Currency;
     this.UcProductsListView.DataBind();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ShoppingCartManager"/> class.
 /// </summary>
 /// <param name="productRepository">The product repository.</param>
 /// <param name="productPriceManager">The product price manager.</param>
 public ShoppingCartManager(IProductRepository productRepository, IProductPriceManager productPriceManager)
 {
   this.shoppingCart = Context.Entity.GetInstance<DomainModel.Carts.ShoppingCart>();
   this.productPriceManager = productPriceManager;
   this.productRepository = productRepository;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Updates the totals.
 /// </summary>
 /// <param name="shoppingCart">The shoppingCart.</param>
 protected void UpdateTotals(DomainModel.Carts.ShoppingCart shoppingCart)
 {
     this.summary.Totals   = shoppingCart.Totals;
     this.summary.Currency = shoppingCart.Currency;
     this.summary.DataBind();
 }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ShoppingCartManager"/> class.
 /// </summary>
 /// <param name="productRepository">The product repository.</param>
 /// <param name="productPriceManager">The product price manager.</param>
 public ShoppingCartManager(IProductRepository productRepository, IProductPriceManager productPriceManager)
 {
     this.shoppingCart        = Context.Entity.GetInstance <DomainModel.Carts.ShoppingCart>();
     this.productPriceManager = productPriceManager;
     this.productRepository   = productRepository;
 }