Пример #1
0
 public void SetupNewCard()
 {
     this.ActiveCardIndex = this.GenerateNextCardIndex();
     // this.UserAnswer = (IAnswer)Activator.CreateInstance(this.CardPack[this.ActiveCardIndex].Answer.GetAnswerType(),
     //                                                     new object[] { "Your answer comes here" });
     this.QuizPhase  = AnswerPhase.CkeckAnswer;
     this.UserAnswer = this.UserAnswerGenerator(this.CardPack[this.ActiveCardIndex].Answer);
 }
Пример #2
0
 public void AnswerWasWrong()
 {
     if (this.UserAnswer.GetAnswerType() == typeof(AnswerLotofTextModel))
     {
         SetupNewCard();
         return;
     }
     this.UserAnswer = this.CardPack[this.ActiveCardIndex].Answer;
     this.QuizPhase  = AnswerPhase.ShowAnser;
 }
Пример #3
0
 public void AnswerWasWrong()
 {
     this._client.SendAnswer(GlobalProfile.Instance.ActiveProfile.Name, false);
     if (this.UserAnswer.GetAnswerType() == typeof(AnswerLotofTextModel))
     {
         SetupNewCard();
         return;
     }
     this.UserAnswer = this._card.Answer;
     this.QuizPhase  = AnswerPhase.ShowAnser;
 }
Пример #4
0
 public void AnswerWasSkipped()
 {
     this.UserAnswer = this._card.Answer;
     this.QuizPhase  = AnswerPhase.ShowAnser;
     this._client.SendAnswer(GlobalProfile.Instance.ActiveProfile.Name, false);
 }
Пример #5
0
 public void SetupNewCard()
 {
     this._card      = this._client.GetCard();
     this.QuizPhase  = AnswerPhase.CkeckAnswer;
     this.UserAnswer = this.UserAnswerGenerator(this._card.Answer);
 }
Пример #6
0
 public OnlineGameModel(OnlineLearningCardService.LearningCardServiceClient client)
 {
     this._client   = client;
     this.QuizPhase = AnswerPhase.CkeckAnswer;
     this.SetupNewCard();
 }
Пример #7
0
 public QnAModel(CardPack cp)
 {
     this.CardPackItem = cp;
     this.QuizPhase    = AnswerPhase.CkeckAnswer;
     this.SetupNewCard();
 }
Пример #8
0
 public void AnswerWasSkipped()
 {
     this.UserAnswer = this.CardPack[this.ActiveCardIndex].Answer;
     this.QuizPhase  = AnswerPhase.ShowAnser;
 }