コード例 #1
0
 public WineSKUViewModel(WineSKUContent currentContent)
 {
     CatalogContent = currentContent;
     Media          = GetMedia(currentContent);
     CartItem       = new CartItemModel(CatalogContent)
     {
         CanBuyEntry = true
     };
 }
コード例 #2
0
 public DigitalCameraVariationViewModel(DigitalCameraVariationContent currentContent)
     : base(currentContent)
 {
     CatalogVariationContent = currentContent;
     Media    = GetMedia(currentContent);
     CartItem = new CartItemModel(CatalogVariationContent)
     {
         CanBuyEntry = true
     };
 }
コード例 #3
0
 public WineSKUViewModel(WineSKUContent currentContent)
 {
     CatalogContent = currentContent;
     Media = GetMedia(currentContent);
     CartItem = new CartItemModel(CatalogContent){CanBuyEntry = true};
     if (currentContent["WineRegion"] != null)
     {
         CartItem.WineRegion = currentContent["WineRegion"].ToString();
     }
 }
コード例 #4
0
 public WineSKUViewModel(WineSKUContent currentContent)
 {
     CatalogContent = currentContent;
     Media          = GetMedia(currentContent);
     CartItem       = new CartItemModel(CatalogContent)
     {
         CanBuyEntry = true
     };
     if (currentContent["WineRegion"] != null)
     {
         CartItem.WineRegion = currentContent["WineRegion"].ToString();
     }
 }