Esempio n. 1
0
        public ProductCatalogItem Clone()
        {
            ProductCatalogItem item = new ProductCatalogItem();

            item.id   = this.id;
            item.type = this.type;
            item.SetStoreIDs(this.allStoreIDs);
            item.defaultDescription = this.defaultDescription.Clone();
            item.screenshotPath     = this.screenshotPath;
            item.applePriceTier     = this.applePriceTier;
            item.googlePrice.value  = this.googlePrice.value;
            item.pricingTemplateID  = this.pricingTemplateID;
            foreach (var desc in this.descriptions)
            {
                item.descriptions.Add(desc.Clone());
            }

            return(item);
        }
Esempio n. 2
0
 public void Remove(ProductCatalogItem item)
 {
     products.Remove(item);
 }
Esempio n. 3
0
 public void Add(ProductCatalogItem item)
 {
     products.Add(item);
 }