private bool ShouldDisplayMeasureWord(SelectableItem <MeasureWord> measureWord)
        {
            string[] searchTerms     = MeasureWordSearchTerm.Split(' ');
            string[] measureWordPart = measureWord.Item.Pinyin.Split(' ');

            return(searchTerms.All(searchTerm => measureWordPart.Any(phrasePart => phrasePart.StartsWith(searchTerm))));
        }
 private void FindHanziFromMeasureWord(SelectableItem <MeasureWord> availableMeasureWord)
 {
     if (NewSentenceHanzi.Contains(availableMeasureWord.Item.Hanzi))
     {
         availableMeasureWord.IsSelected = true;
     }
 }
        private bool ShouldDisplayPhrase(SelectableItem <Phrase> phrase)
        {
            string[] searchTerms = PhraseSearchTerm.Split(' ');
            string[] phraseParts = phrase.Item.Pinyin.Split(' ');

            return(searchTerms.All(searchTerm => phraseParts.Any(phrasePart => phrasePart.StartsWith(searchTerm))));
        }
 private void FindHanziFromPhrase(SelectableItem <Phrase> availablePhrase)
 {
     if (NewSentenceHanzi.Contains(availablePhrase.Item.Hanzi))
     {
         availablePhrase.IsSelected = true;
     }
 }