private void ParseCategoryIds() { CategoryIds = WUQueryCategoryIds.Split(new string[] { "," }, StringSplitOptions.RemoveEmptyEntries).Select(str => str.Trim()).ToList(); if (InstallWindowsOSOnlyUpdates) { CategoryIds.Add(WindowsOSOnlyCategoryId); } }
public WeProductBase(string categoryId, WeProductProperty property, string name, SkuInfo skuInfo, string mainImg, string img, WeProductDetail detail) : this(name, mainImg) { TkDebug.AssertArgumentNullOrEmpty(categoryId, "categoryId", null); TkDebug.AssertArgumentNull(property, "property", null); TkDebug.AssertArgumentNull(skuInfo, "skuInfo", null); TkDebug.AssertArgumentNullOrEmpty(img, "img", null); TkDebug.AssertArgumentNull(detail, "detail", null); CategoryIds.Add(categoryId); Properties.Add(property); SkuInfos.Add(skuInfo); Imgs.Add(img); Details.Add(detail); }