Beispiel #1
0
        private async void load(string url)
        {
            HMS.SP.DocumentLibraryInformation spDocumentLibraryInformation = await SPGet.getDocumentLibraryInformation(spglb.myClient, url);

            this.add_DocumentLibraryInformation(1, spDocumentLibraryInformation);
            this.hide_running();
        }
 public int  add_DocumentLibraryInformation(int pos, int level, HMS.SP.DocumentLibraryInformation spDocumentLibraryInformation)
 {
     if (spDocumentLibraryInformation.__HMSError_ != null && (spDocumentLibraryInformation.__HMSError_.errno != 0 || spDocumentLibraryInformation.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spDocumentLibraryInformation.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spDocumentLibraryInformation.__deferred_);
     pos = this.add__metadata(pos, level, spDocumentLibraryInformation.__metadata_);
     pos = this.add__rest(pos, level, spDocumentLibraryInformation.__rest);
     pos = this.add_lineAt(pos, level, "Modified", HMS.SP.SPUtil.toString(spDocumentLibraryInformation.Modified_));                               //DateTime;
     pos = this.add_lineAt(pos, level, "ModifiedFriendlyDisplay", HMS.SP.SPUtil.toString(spDocumentLibraryInformation.ModifiedFriendlyDisplay_)); //String;
     pos = this.add_lineAt(pos, level, "ServerRelativeUrl", HMS.SP.SPUtil.toString(spDocumentLibraryInformation.ServerRelativeUrl_));             //String;
     pos = this.add_lineAt(pos, level, "Title", HMS.SP.SPUtil.toString(spDocumentLibraryInformation.Title_));                                     //String;
     return(pos);
 }
 public int add_DocumentLibraryInformation_deferred(int pos, int level, HMS.SP.DocumentLibraryInformation spDocumentLibraryInformation)
 {
     if (spDocumentLibraryInformation.TitleResource_.uri == null)
     {
         pos = this.add_lineAt(pos, level, true, "DocumentLibraryInformation", HMS.SP.SPUtil.toString(spDocumentLibraryInformation.Title_), knownPages.NONE, ""); //String;
         pos = add_DocumentLibraryInformation(pos, level + 1, spDocumentLibraryInformation);
     }
     else
     {
         string useUrl = spDocumentLibraryInformation.__deferred_.uri;
         if (String.IsNullOrEmpty(useUrl))
         {
             useUrl = spDocumentLibraryInformation.TitleResource_.uri.Replace("/TitleResource", "");
         }
         pos = this.add_lineAt(pos, level, false, spDocumentLibraryInformation.Title_, "", knownPages.pageDocumentLibraryInformation, useUrl);
     }
     return(pos);
 }
 public int add_DocumentLibraryInformation(int level, HMS.SP.DocumentLibraryInformation spDocumentLibraryInformation)
 {
     return(add_DocumentLibraryInformation(-1, level, spDocumentLibraryInformation));
 }