Ejemplo n.º 1
0
        public MainViewModel(IPonsDictionaryService ponsRestService, ILanguagesTreeService languageTreeService)
        {
            _pons         = ponsRestService;
            _languageTree = languageTreeService;

            //
            LanguageFrom        = _languageTree.LanguageTree.Find(x => x.PonsCode.Equals("de"));
            LanguageTranslation = LanguageFrom.TranslatesTo.Find(x => x.LanguageTo.PonsCode.Equals("pl"));
            //LanguageTo = _languageTree.LanguageTree.Find(x => x.PonsCode.Equals("pl"));
        }
Ejemplo n.º 2
0
 public MainViewModel(IPonsDictionaryService ponsRestService)
 {
     _pons = ponsRestService;
 }