Exemplo n.º 1
0
        private async void load(string url)
        {
            HMS.SP.FieldUrlValue spFieldUrlValue = await SPGet.getFieldUrlValue(spglb.myClient, url);

            this.add_FieldUrlValue(1, spFieldUrlValue);
            this.hide_running();
        }
Exemplo n.º 2
0
 public int  add_FieldUrlValue(int pos, int level, HMS.SP.FieldUrlValue spFieldUrlValue)
 {
     if (spFieldUrlValue.__HMSError_ != null && (spFieldUrlValue.__HMSError_.errno != 0 || spFieldUrlValue.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spFieldUrlValue.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spFieldUrlValue.__deferred_);
     pos = this.add__metadata(pos, level, spFieldUrlValue.__metadata_);
     pos = this.add__rest(pos, level, spFieldUrlValue.__rest);
     pos = this.add_lineAt(pos, level, "Description", HMS.SP.SPUtil.toString(spFieldUrlValue.Description_)); //String;
     pos = this.add_lineAt(pos, level, "Url", HMS.SP.SPUtil.toString(spFieldUrlValue.Url_));                 //String;
     return(pos);
 }
Exemplo n.º 3
0
 public int add_FieldUrlValue_deferred(int pos, int level, HMS.SP.FieldUrlValue spFieldUrlValue)
 {
     {
         string useUrl = spFieldUrlValue.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "FieldUrlValue", "", knownPages.pageFieldUrlValue, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "FieldUrlValue", "", knownPages.NONE, "");
             pos = this.add_FieldUrlValue(pos, level + 1, spFieldUrlValue);
         }
     }
     return(pos);
 }
Exemplo n.º 4
0
 public int add_FieldUrlValue(int level, HMS.SP.FieldUrlValue spFieldUrlValue)
 {
     return(add_FieldUrlValue(-1, level, spFieldUrlValue));
 }