Exemple #1
0
        public List <WordTrans> getTransWords()
        {
            List <WordTrans> list     = new List <WordTrans>();
            IIterator        iterator = aggregate.GetIterator();

            WordPol word = (WordPol)iterator.First;

            list.Add(word.wordTrans);
            while (!iterator.IsDone)
            {
                word = (WordPol)iterator.Next;
                list.Add(word.wordTrans);
            }
            return(list);
        }
Exemple #2
0
        public List <WordTrans> getLangTransWords(string lang)
        {
            List <WordTrans> list     = new List <WordTrans>();
            IIterator        iterator = aggregate.GetIterator();
            WordPol          word     = (WordPol)iterator.First;

            list.Add(word.wordTrans);
            while (!iterator.IsDone)
            {
                word = (WordPol)iterator.Next;
                list.Add(word.wordTrans);
            }
            List <WordTrans> newlist = new List <WordTrans>();

            newlist = list.Where(s => s.lang == lang).ToList();
            return(newlist);
        }
Exemple #3
0
 public void AddTranslate(IWord word)
 {
     this.wordPol = (WordPol)word;
 }
Exemple #4
0
 public void addWord(WordPol word)
 {
     aggregate.insertPol(word);
 }
Exemple #5
0
 public void insertPol(WordPol word)
 {
     polishWords.Add(word);
 }