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

            this.add_Language(1, spLanguage);
            this.hide_running();
        }
예제 #2
0
 public int  add_Language(int pos, int level, HMS.SP.Language spLanguage)
 {
     if (spLanguage.__HMSError_ != null && (spLanguage.__HMSError_.errno != 0 || spLanguage.__HMSError_.info != ""))
     {
         pos = this.add_lineAt(pos, level, "__HMSError", HMS.Util.__HMSError.toString(spLanguage.__HMSError_));
     }
     pos = this.add__deferred(pos, level, spLanguage.__deferred_);
     pos = this.add__metadata(pos, level, spLanguage.__metadata_);
     pos = this.add__rest(pos, level, spLanguage.__rest);
     pos = this.add_lineAt(pos, level, "DisplayName", HMS.SP.SPUtil.toString(spLanguage.DisplayName_)); //String;
     pos = this.add_lineAt(pos, level, "LanguageTag", HMS.SP.SPUtil.toString(spLanguage.LanguageTag_)); //String;
     pos = this.add_lineAt(pos, level, "Lcid", HMS.SP.SPUtil.toString(spLanguage.Lcid_));               //Int32;
     return(pos);
 }
예제 #3
0
 public int add_Language_deferred(int pos, int level, HMS.SP.Language spLanguage)
 {
     {
         string useUrl = spLanguage.__deferred_.uri;
         if (!String.IsNullOrEmpty(useUrl))
         {
             pos = this.add_lineAt(pos, level, false, "Language", "", knownPages.pageLanguage, useUrl);
         }
         else
         {
             pos = this.add_lineAt(pos, level, true, "Language", "", knownPages.NONE, "");
             pos = this.add_Language(pos, level + 1, spLanguage);
         }
     }
     return(pos);
 }
예제 #4
0
 public int add_Language(int level, HMS.SP.Language spLanguage)
 {
     return(add_Language(-1, level, spLanguage));
 }