protected override void AfterCreate()
		{
			base.AfterCreate();
			if (StandalonePackage == null)
				StandalonePackage = new StandaloneDigitalPackage();
			foreach (var digitalProduct in DigitalProducts)
				digitalProduct.AfterCreate();
		}
Ejemplo n.º 2
0
 protected override void AfterCreate()
 {
     base.AfterCreate();
     if (StandalonePackage == null)
     {
         StandalonePackage = new StandaloneDigitalPackage();
     }
     foreach (var digitalProduct in DigitalProducts)
     {
         digitalProduct.AfterCreate();
     }
 }
Ejemplo n.º 3
0
 protected DigitalProductsContent()
 {
     DigitalProducts       = new List <DigitalProduct>();
     StandalonePackage     = new StandaloneDigitalPackage();
     DigitalProductSummary = new DigitalProductSummary();
 }
 public StandalonePackageRecord(StandaloneDigitalPackage parent) : base(parent)
 {
     Parent = parent;
     Index  = parent.Items.Any() ? parent.Items.Max(s => s.Index) + 1 : 1;
 }
		protected DigitalProductsContent()
		{
			DigitalProducts = new List<DigitalProduct>();
			StandalonePackage = new StandaloneDigitalPackage();
			DigitalProductSummary = new DigitalProductSummary();
		}