コード例 #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();
            }
        }
コード例 #2
0
 public ShowSerializedQuestCommand(QuestDetailViewModel questDetailViewModel)
 {
     _questDetailViewModel = questDetailViewModel;
 }
コード例 #3
0
 public ShowSerializedQuestCommand(QuestDetailViewModel questDetailViewModel)
 {
     _questDetailViewModel = questDetailViewModel;
 }