public static QuizModeQuestionItemViewModel CreateInstance(
     QuizModeQuestionItemView view,
     QuestionModel model)
 {
     var instance = new QuizModeQuestionItemViewModel();
     instance.QuizModeQuestionItemView = view;
     instance.QuestionModel = model;
     view.SetViewModel(instance);
     return instance;
 }
예제 #2
0
 public void OnCorrectAnswer(
     QuizModeQuestionItemViewModel qItem,
     int listIdx)
 {
     qItem.QuestionItemState = QuestionItemState.Fixed;
     QuizModeAnswerListViewModel.RemoveAt(listIdx);
 }
예제 #3
0
 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;
 }