本文整理汇总了C#中Brand.Add方法的典型用法代码示例。如果您正苦于以下问题:C# Brand.Add方法的具体用法?C# Brand.Add怎么用?C# Brand.Add使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Brand
的用法示例。
在下文中一共展示了Brand.Add方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateGucciBrand
private IComponent CreateGucciBrand()
{
IComponent vivineBest = new Brand<GucciBrand>();
IComponent WomensAccessory = vivineBest.Add(new ProductCategory("WomensAccessory"));
IComponent Bages = WomensAccessory.Add(new ProductCategory("Bags"));
Bages.Add(new Product("GG running large tote with double G", "$3400"));
Bages.Add(new Product("Jackie Shoulder Bag", "$1890"));
IComponent Shoes = WomensAccessory.Add(new ProductCategory("Shoes"));
Shoes.Add(new Product("ophelie flat thong tiger head", "$1750"));
Shoes.Add(new Product("women's horsebit moccasin", "$585"));
IComponent Womenswear = vivineBest.Add(new ProductCategory("Womenswear"));
IComponent Dresses = Womenswear.Add(new ProductCategory("Dresses"));
Dresses.Add(new Product("bi-color overlap dress", "$1900"));
IComponent Coats = Womenswear.Add(new ProductCategory("Coats"));
Coats.Add(new Product("Jacket with leather collar", "$2100"));
return vivineBest;
}
示例2: CreateVivinneBrand
private IComponent CreateVivinneBrand()
{
IComponent vivineBest = new Brand<VivienneBrand>();
IComponent WomensAccessory = vivineBest.Add(new ProductCategory("WomensAccessory"));
IComponent Bages = WomensAccessory.Add(new ProductCategory("Bags"));
Bages.Add(new Product("DERBY BAG NEW EXHIBITION 5571", "$655"));
Bages.Add(new Product("DOLCE VITA BAG 5301", "$910"));
IComponent Shoes = WomensAccessory.Add(new ProductCategory("Shoes"));
Shoes.Add(new Product("PINK WANTING BALLERINAS", "$115"));
Shoes.Add(new Product("BLACK BUTTON SANDAL", "$108"));
IComponent Womenswear = vivineBest.Add(new ProductCategory("Womenswear"));
IComponent Dresses = Womenswear.Add(new ProductCategory("Dresses"));
Dresses.Add(new Product("AVA CHANGEANT TAFFETA DRESS", "$855"));
IComponent Coats = Womenswear.Add(new ProductCategory("Coats"));
Coats.Add(new Product("WATERPROOF MA", "$980"));
return vivineBest;
}