Beispiel #1
0
        public void ReverseOriginalWords()
        {
            List <Word> currentWords = OriginalWords.ToList();

            OriginalWords.Clear();
            foreach (Word w in enumerator.GetWordsConversely(currentWords))
            {
                OriginalWords.Add(w);
            }
        }
Beispiel #2
0
        public void SortOriginalWordsByKnowledge()
        {
            List <Word> currentWords = OriginalWords.ToList();

            OriginalWords.Clear();
            foreach (Word w in enumerator.GetWordsSortedByKnowledge(currentWords))
            {
                OriginalWords.Add(w);
            }
        }
Beispiel #3
0
        public void SortOriginalWordsByDateAdded()
        {
            List <Word> currentWords = OriginalWords.ToList();

            OriginalWords.Clear();
            foreach (Word w in Words.Where(w => w.LanguageId == SelectedOriginalLanguage.Id & currentWords.Any(current => current.Id == w.Id)))
            {
                OriginalWords.Add(w);
            }
        }
Beispiel #4
0
 void SearchOriginalWords(object sender, PropertyChangedEventArgs e)
 {
     if (e.PropertyName == "SearchingSubstring")
     {
         List <Word> currentWords = OriginalWords.ToList();
         OriginalWords.Clear();
         foreach (Word w in enumerator.GetWordsWhichContainSubstring(Words.Where(w => w.LanguageId == SelectedOriginalLanguage.Id), SearchingSubstring))
         {
             OriginalWords.Add(w);
         }
     }
 }