Beispiel #1
0
 public AddEditQuestViewModel(IAddEditView view, ITaskInfoAboutQuestViewModel taskInfoAboutQuestViewModel, ICreateQuestsViewModel createQuestsViewModel,
                              IPrizeShowViewModel prizeShowViewModel, IDataService dataService)
 {
     this.View = view;
     this.View.BindDataContext(this);
     this.TaskInfoAboutQuest = taskInfoAboutQuestViewModel;
     this.QuestionTask       = createQuestsViewModel;
     this.PrizeShow          = prizeShowViewModel;
     this.dataService        = dataService;
     this.AppData            = AppData.GetInstance();
     this.View.SetFramesContext(this.TaskInfoAboutQuest.View, this.QuestionTask.View, this.PrizeShow.View);
 }
 public void BindDataContext(ICreateQuestsViewModel viewModel)
 {
     this.DataContext = viewModel;
 }