Ejemplo n.º 1
0
 public TriviaGameQuestionViewModel(TriviaGameEditorControlViewModel control, TriviaGameQuestion question)
     : this(control)
 {
     this.Question      = question.Question;
     this.CorrectAnswer = question.CorrectAnswer;
     for (int i = 0; i < question.WrongAnswers.Count; i++)
     {
         this.WrongAnswers[i] = question.WrongAnswers[i];
     }
 }
Ejemplo n.º 2
0
        public TriviaGameQuestionViewModel(TriviaGameEditorControlViewModel control)
        {
            this.control = control;

            this.DeleteCustomQuestionCommand = this.CreateCommand((parameter) =>
            {
                this.control.DeleteCustomQuestion(this);
                return(Task.FromResult(0));
            });
        }