public UMQuery(UMUpdate update) { ProductTitles = update.Products; Superseded = update.IsSuperseded; Approved = update.IsApproved; Declined = update.IsDeclined; UpdateTitle = update.Title; }
public UMDownload(UMUpdate update, string downloadPath) { _id = update.Id.UpdateId; _dlPath = downloadPath; var tempList = update.GetInstallableItems(); for (int i = 0; i < tempList.Count; i++) { var item = tempList[i]; for (int i1 = 0; i1 < item.Files.Count; i1++) { var file = item.Files[i1]; if (file.Name.EndsWith(".cab", StringComparison.OrdinalIgnoreCase) && file.Type == FileType.SelfContained) { _uri = file.OriginUri; _tit = file.Name; } } } }