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