コード例 #1
0
ファイル: UMQuery.cs プロジェクト: Yevrag35/UpdateManagement
 public UMQuery(UMUpdate update)
 {
     ProductTitles = update.Products;
     Superseded    = update.IsSuperseded;
     Approved      = update.IsApproved;
     Declined      = update.IsDeclined;
     UpdateTitle   = update.Title;
 }
コード例 #2
0
        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;
                    }
                }
            }
        }