예제 #1
0
        private async void load(string url)
        {
            HMS.SP.Change spChange = await SPGet.getChange(spglb.myClient, url);

            this.add_Change(1, spChange);
            this.hide_running();
        }
예제 #2
0
 public int  add_Change(int pos, int level, HMS.SP.Change spChange)
 {
     if (spChange.__HMSError_ != null && (spChange.__HMSError_.errno != 0 || spChange.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spChange.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spChange.__deferred_);
     pos = this.add__metadata(pos, level, spChange.__metadata_);
     pos = this.add__rest(pos, level, spChange.__rest);
     pos = this.add_deferredAt(pos, level, "ChangeToken", "...", knownPages.pageChangeToken, spChange.ChangeToken_.__deferred_); //ChangeToken;
     pos = this.add_lineAt(pos, level, "ChangeType", HMS.SP.SPUtil.toString(spChange.ChangeType_));                              //ChangeType;
     pos = this.add_lineAt(pos, level, "SiteId", HMS.SP.SPUtil.toString(spChange.SiteId_));                                      //Guid;
     pos = this.add_lineAt(pos, level, "Time", HMS.SP.SPUtil.toString(spChange.Time_));                                          //DateTime;
     return(pos);
 }
예제 #3
0
 public int add_Change_deferred(int pos, int level, HMS.SP.Change spChange)
 {
     {
         string useUrl = spChange.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "Change", "", knownPages.pageChange, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "Change", "", knownPages.NONE, "");
             pos = this.add_Change(pos, level + 1, spChange);
         }
     }
     return(pos);
 }
예제 #4
0
 public int add_Change(int level, HMS.SP.Change spChange)
 {
     return(add_Change(-1, level, spChange));
 }