public EncodingVM(Language _word, Language _translation, List <Translation> _translations, ResourceManager rm, CultureInfo ci, bool displayAddButton, List <Language.Languages> languages) { Translation t = new Translation(_word, _translation); Translation = new TranslationVM(t, languages); translations = _translations; this.rm = rm; this.ci = ci; IsVisible = displayAddButton; UILanguage1 = languages[0].ToDescription(); UILanguage2 = languages[1].ToDescription(); }
private void SelectionHandler(TranslationVM translation) { EncodingVM.SetItem(SelectedItem); }
public void SetItem(TranslationVM translation) { Translation = translation; }