예제 #1
0
        private void EditPhrase(PhraseItem phraseItem)
        {
            //TODO: Rewrite with DI
            var editViewModel = new EditingViewModel(_selectedPack, phraseItem, _selectedAuthor, _phrases);
            var editView      = new EditingView(editViewModel);

            editView.ShowDialog();
        }
예제 #2
0
        public EditingView(EditingViewModel viewModel)
        {
            InitializeComponent();
            this.AttachDevTools();

            viewModel.Close += Close;
            DataContext      = viewModel;

            Closed += EditingView_Closed;
        }