Esempio n. 1
0
        public AdditionalArticlesList(Dictionary.WordList model)
        {
            _model             = model;
            ItemClickCommand   = new Common.Mvvm.Command(ItemClickCommandImpl);
            HeaderClickCommand = new Common.Mvvm.Command(HeaderClickCommandImpl);
            Items = new ObservableCollection <DictionaryItem>();

            FillItems();
        }
Esempio n. 2
0
        public static string GetWordListName(Dictionary.WordList list)
        {
            string locale = LocaleInformation.GetLocale();

            foreach (Dictionary.LocalizedString localizedName in list.NameStrings)
            {
                if (localizedName.Language.FullName == locale)
                {
                    return(localizedName.Value);
                }
            }

            if (list.NameStrings.Count > 0)
            {
                return(list.NameStrings[0].Value);
            }

            return(string.Empty);
        }