internal DictionaryItem(Dictionary.ListItem model)
        {
            _model    = model;
            _hasSound = _model.HasSound;

            _dictionaryService = Mvx.Resolve <IDictionaryService>();

            Initialize();
        }
        public Dictionary.ListItemIndex?FindMorphoTable(string word)
        {
            var lists = _lists.Where(l => l.Type == Dictionary.WordListTypes.MorphologyArticles);

            foreach (Dictionary.WordList list in lists)
            {
                Dictionary.ListItem result = list.FindWord(word, false);
                if (result != null)
                {
                    return(result.Index);
                }
            }

            return(null);
        }
        public DictionaryItem GetItemByWord(string word, uint languageCode)
        {
            lock (_locker)
            {
                IEnumerable <Dictionary.WordList> dictLists = GetDictionaryListsByLanguage(languageCode);
                foreach (Dictionary.WordList list in dictLists)
                {
                    Dictionary.ListItem result = list.FindWord(word);
                    if (result != null)
                    {
                        return(new DictionaryItem(result));
                    }
                }

                return(null);
            }
        }