コード例 #1
0
        private void InputNewContent()
        {
            var input = new VocabularyInputWindow();

            input.DataContext = new VocabularyInputViewModel();
            input.ShowDialog();
        }
コード例 #2
0
        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();
            }
        }