Example #1
0
 protected override void InitializeFields()
 {
     tradicIterator    = TradicIterator.GetInstance();
     Words             = new ObservableCollection <Word>(tradicIterator.GetWords());
     Descriptions      = new ObservableCollection <Description>(tradicIterator.GetDescriptions());
     OriginalLanguages = new ObservableCollection <Language>(tradicIterator.GetLanguages());
 }
Example #2
0
 public EqualExam(ITradicIterator entitiesIterator)
 {
     this.entitiesIterator = entitiesIterator;
     descriptions          = entitiesIterator.GetDescriptions();
     languages             = entitiesIterator.GetLanguages();
     SortAllWords();
 }
        protected override void InitializeFields()
        {
            entitiesIterator = TradicIterator.GetInstance();
            languages        = entitiesIterator.GetLanguages();
            equalExam        = new EqualExam(entitiesIterator);

            GenerateTest();
            TranslationLanguage = languages.First(l => l.Id == equalExam.GetTranslation().LanguageId);
        }
 protected override void InitializeProperties()
 {
     OriginalLanguages = new ObservableCollection <Language>(dataAccess.GetLanguages());
 }
Example #5
0
 public Language GetTranslationLanguage()
 {
     return(entitiesIterator.GetLanguages().First(l => l.Id == openableTranslation.LanguageId));
 }