Ejemplo n.º 1
0
        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;
 }
 public ShowSerializedQuestCommand(QuestDetailViewModel questDetailViewModel)
 {
     _questDetailViewModel = questDetailViewModel;
 }