private void InputNewContent() { var input = new VocabularyInputWindow(); input.DataContext = new VocabularyInputViewModel(); input.ShowDialog(); }
private void EditContent() { var words = LoadWords(multiFile: false); if (words != null && words.Count == 1) { var edit = new VocabularyInputWindow(); edit.DataContext = new VocabularyInputViewModel(words[0].Item2, words[0].Item1); edit.ShowDialog(); } }