Пример #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);
        }
Пример #2
0
 public void Remove(ProductCatalogItem item)
 {
     products.Remove(item);
 }
Пример #3
0
 public void Add(ProductCatalogItem item)
 {
     products.Add(item);
 }