Exemple #1
0
 public override string ToString()
 {
     if (Language == null)
     {
         return("");
     }
     else
     {
         return(STBL.GetLanguageLocalizedName((STBL.Languages)Language));
     }
 }
Exemple #2
0
        public static void SetupLanguagePicker(Picker picker, List <STBL.Languages> checkedLanguages)
        {
            foreach (STBL.Languages language in STBL.GetAllLanguages())
            {
                bool languageIsChecked = false;

                if (checkedLanguages.Contains(language))
                {
                    languageIsChecked = true;
                }

                picker.AddItem(new PickerItem(STBL.GetLanguageLocalizedName(language), language), isChecked: languageIsChecked);
            }
        }