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); }
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); }
public void AddTranslate(IWord word) { this.wordPol = (WordPol)word; }
public void addWord(WordPol word) { aggregate.insertPol(word); }
public void insertPol(WordPol word) { polishWords.Add(word); }