public static QuizModeQuestionItemViewModel CreateInstance( QuizModeQuestionItemView view, QuestionModel model) { var instance = new QuizModeQuestionItemViewModel(); instance.QuizModeQuestionItemView = view; instance.QuestionModel = model; view.SetViewModel(instance); return instance; }
public void OnCorrectAnswer( QuizModeQuestionItemViewModel qItem, int listIdx) { qItem.QuestionItemState = QuestionItemState.Fixed; QuizModeAnswerListViewModel.RemoveAt(listIdx); }
public void MoveToFront(QuizModeQuestionItemViewModel qItem) { var root = MainWindow.QuizModePanel.quizModeMapAreaPanel1.QuestionItemLayer; root.Children.Remove(qItem.QuizModeQuestionItemView); root.Children.Add(qItem.QuizModeQuestionItemView); }
public void SetViewModel(QuizModeQuestionItemViewModel viewModel) { QuizModeQuestionItemViewModel = viewModel; }