Exemplo n.º 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);
 }
Exemplo n.º 2
0
 public void AnswerWasWrong()
 {
     if (this.UserAnswer.GetAnswerType() == typeof(AnswerLotofTextModel))
     {
         SetupNewCard();
         return;
     }
     this.UserAnswer = this.CardPack[this.ActiveCardIndex].Answer;
     this.QuizPhase  = AnswerPhase.ShowAnser;
 }
Exemplo n.º 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;
 }
Exemplo n.º 4
0
 public void AnswerWasSkipped()
 {
     this.UserAnswer = this._card.Answer;
     this.QuizPhase  = AnswerPhase.ShowAnser;
     this._client.SendAnswer(GlobalProfile.Instance.ActiveProfile.Name, false);
 }
Exemplo n.º 5
0
 public void SetupNewCard()
 {
     this._card      = this._client.GetCard();
     this.QuizPhase  = AnswerPhase.CkeckAnswer;
     this.UserAnswer = this.UserAnswerGenerator(this._card.Answer);
 }
Exemplo n.º 6
0
 public OnlineGameModel(OnlineLearningCardService.LearningCardServiceClient client)
 {
     this._client   = client;
     this.QuizPhase = AnswerPhase.CkeckAnswer;
     this.SetupNewCard();
 }
Exemplo n.º 7
0
 public QnAModel(CardPack cp)
 {
     this.CardPackItem = cp;
     this.QuizPhase    = AnswerPhase.CkeckAnswer;
     this.SetupNewCard();
 }
Exemplo n.º 8
0
 public void AnswerWasSkipped()
 {
     this.UserAnswer = this.CardPack[this.ActiveCardIndex].Answer;
     this.QuizPhase  = AnswerPhase.ShowAnser;
 }