Exemplo n.º 1
0
 /// <summary>
 /// Initializes the model.
 /// </summary>
 private void Initialize()
 {
     _options = _display.ProductOptions.Select(x => x.ProductOptionAsProductOptionWrapper(this, this.OptionContentTypes)).ToArray();
     //_variantContent = new Lazy<IEnumerable<IProductVariantContent>>(() => _display.ProductVariantsAsProductVariantContent(this.OptionContentTypes, _options, CultureName, this));
     _varaintContent = _display.ProductVariantsAsProductVariantContent(this.OptionContentTypes, _options, CultureName, this);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Initializes the model.
 /// </summary>
 private void Initialize()
 {
     _variantContent = new Lazy <IEnumerable <IProductVariantContent> >(() => _display.ProductVariantsAsProductVariantContent(CultureName));
 }