Beispiel #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="supportedLanguagesIds"></param>
 public VLSupportedLanguagesColection(string supportedLanguagesIds)
 {
     m_SupportedLanguages = new Collection <VLLanguage>();
     if (!string.IsNullOrWhiteSpace(supportedLanguagesIds))
     {
         var tokens = supportedLanguagesIds.Split(new char[] { ',' }, StringSplitOptions.RemoveEmptyEntries);
         foreach (string token in tokens)
         {
             var language = BuiltinLanguages.GetLanguageById(Convert.ToInt16(token, CultureInfo.InvariantCulture), false);
             if (language != null)
             {
                 m_SupportedLanguages.Add(language);
             }
         }
     }
 }
 public override string ToString()
 {
     return(string.Format("{0}:{1} -> {2}", this.OptionId, BuiltinLanguages.GetLanguageById(this.TextsLanguage).Name, this.OptionText));
 }
 /// <summary>
 ///
 /// </summary>
 /// <returns></returns>
 public override string ToString()
 {
     return(string.Format("{0}:{1} -> {2}", this.PageId, BuiltinLanguages.GetLanguageById(this.TextsLanguage).Name, this.ShowTitle));
 }