public CreateQuestionsViewModel(ICreateQuestsView view) { this.View = view; this.View.BindDataContext(this); this.AppData = AppData.GetInstance(); this.Questions = new ObservableCollection <Question>(); this.Answers = new ObservableCollection <Answer>(); }
public void SetFramesContext(ITaskInfoAboutQuestView aboutQuestView, ICreateQuestsView createQuestsView, IPrizeShowView prizeShowView) { this.TaskQuestInfo.Content = aboutQuestView; this.QuestionTask.Content = createQuestsView; this.PrizeShow.Content = prizeShowView; }