Esempio n. 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();
        }
Esempio n. 2
0
        public EditingView(EditingViewModel viewModel)
        {
            InitializeComponent();
            this.AttachDevTools();

            viewModel.Close += Close;
            DataContext      = viewModel;

            Closed += EditingView_Closed;
        }