Пример #1
0
        private async void load(string url)
        {
            HMS.SP.TimeZone spTimeZone = await SPGet.getTimeZone(spglb.myClient, url);

            this.add_TimeZone(1, spTimeZone);
            this.hide_running();
        }
Пример #2
0
        public int  add_TimeZone(int pos, int level, HMS.SP.TimeZone spTimeZone)
        {
            if (spTimeZone.__HMSError_ != null && (spTimeZone.__HMSError_.errno != 0 || spTimeZone.__HMSError_.info != ""))
            {
                pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spTimeZone.__HMSError_));
            }
            pos = this.add__deferred(pos, level, spTimeZone.__deferred_);
            pos = this.add__metadata(pos, level, spTimeZone.__metadata_);
            pos = this.add__rest(pos, level, spTimeZone.__rest);

            return(pos);
        }
Пример #3
0
 public int add_TimeZone_deferred(int pos, int level, HMS.SP.TimeZone spTimeZone)
 {
     {
         string useUrl = spTimeZone.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "TimeZone", "", knownPages.pageTimeZone, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "TimeZone", "", knownPages.NONE, "");
             pos = this.add_TimeZone(pos, level + 1, spTimeZone);
         }
     }
     return(pos);
 }
Пример #4
0
 public int add_TimeZone(int level, HMS.SP.TimeZone spTimeZone)
 {
     return(add_TimeZone(-1, level, spTimeZone));
 }