Exemple #1
0
        private async void load(string url)
        {
            HMS.SP.ChangeContentType spChangeContentType = await SPGet.getChangeContentType(spglb.myClient, url);

            this.add_ChangeContentType(1, spChangeContentType);
            this.hide_running();
        }
 public int  add_ChangeContentType(int pos, int level, HMS.SP.ChangeContentType spChangeContentType)
 {
     if (spChangeContentType.__HMSError_ != null && (spChangeContentType.__HMSError_.errno != 0 || spChangeContentType.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spChangeContentType.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spChangeContentType.__deferred_);
     pos = this.add__metadata(pos, level, spChangeContentType.__metadata_);
     pos = this.add__rest(pos, level, spChangeContentType.__rest);
     pos = this.add_deferredAt(pos, level, "ContentTypeId", "...", knownPages.pageContentTypeId, spChangeContentType.ContentTypeId_.__deferred_); //ContentTypeId;
     pos = this.add_lineAt(pos, level, "WebId", HMS.SP.SPUtil.toString(spChangeContentType.WebId_));                                              //Guid;
     return(pos);
 }
 public int add_ChangeContentType_deferred(int pos, int level, HMS.SP.ChangeContentType spChangeContentType)
 {
     {
         string useUrl = spChangeContentType.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "ChangeContentType", "", knownPages.pageChangeContentType, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "ChangeContentType", "", knownPages.NONE, "");
             pos = this.add_ChangeContentType(pos, level + 1, spChangeContentType);
         }
     }
     return(pos);
 }
 public int add_ChangeContentType(int level, HMS.SP.ChangeContentType spChangeContentType)
 {
     return(add_ChangeContentType(-1, level, spChangeContentType));
 }