private void EditPhrase(PhraseItem phraseItem) { //TODO: Rewrite with DI var editViewModel = new EditingViewModel(_selectedPack, phraseItem, _selectedAuthor, _phrases); var editView = new EditingView(editViewModel); editView.ShowDialog(); }
public EditingView(EditingViewModel viewModel) { InitializeComponent(); this.AttachDevTools(); viewModel.Close += Close; DataContext = viewModel; Closed += EditingView_Closed; }