예제 #1
0
        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);
 }
예제 #3
0
 public void SetItem(TranslationVM translation)
 {
     Translation = translation;
 }