Beispiel #1
0
        public void AddDigital(string categoryName)
        {
            var digitalProduct = new DigitalProduct(this)
            {
                Index    = DigitalProducts.Count + 1,
                Category = categoryName
            };
            var subCategories = Dictionaries.ListManager.Instance.ProductSources
                                .Where(productSource =>
                                       productSource.Category != null &&
                                       productSource.Category.Name.Equals(categoryName) &&
                                       !String.IsNullOrEmpty(productSource.SubCategory))
                                .Select(x => x.SubCategory)
                                .Distinct()
                                .ToList();

            if (subCategories.Count <= 1)
            {
                digitalProduct.SubCategory = subCategories.FirstOrDefault();
            }
            DigitalProducts.Add(digitalProduct);
        }
Beispiel #2
0
 public ProductPackageRecord(DigitalProduct parent) : base(parent.Parent.ScheduleSettings)
 {
     Parent = parent;
     ResetToDefault();
 }
Beispiel #3
0
 public void Dispose()
 {
     _source = null;
 }
Beispiel #4
0
 public DigitalProductOutputData(DigitalProduct parent)
 {
     _source = parent;
 }