Beispiel #1
0
 public void addProduct(CanonicalProduct canonicalProduct, decimal price)
 {
     Product product = new Product(canonicalProduct, price);
     this.Products.Add(canonicalProduct.Uid, product);
 }
Beispiel #2
0
 public Product(CanonicalProduct canonicalProduct, decimal price)
 {
     this.CanonicalProduct = canonicalProduct;
     this.Price = price;
 }
Beispiel #3
0
 public Product(SerializationInfo info, StreamingContext ctxt)
 {
     this.CanonicalProduct = (CanonicalProduct)info.GetValue("CanonicalProduct", typeof(CanonicalProduct));
     this.Price = (decimal)info.GetValue("Price", typeof(decimal));
 }
 public void addCanonicalProduct(string name, string description, string imageURL)
 {
     CanonicalProduct canonicalProduct = new CanonicalProduct(this.CanonicalProductUids, name, description, imageURL);
     this.CanonicalProducts.Add(this.CanonicalProductUids, canonicalProduct);
     this.CanonicalProductUids++;
 }