public void AddQuest() { var questDetailViewModel = new QuestDetailViewModel(new Quest()); var newDialog = new AddQuestDialog { DataContext = questDetailViewModel }; newDialog.ShowDialog(); if (newDialog.DialogResult == true) { _questRepository.Add(questDetailViewModel.Quest); _questRepository.SaveChanges(); RefreshQuests(); } }
public ShowSerializedQuestCommand(QuestDetailViewModel questDetailViewModel) { _questDetailViewModel = questDetailViewModel; }