public string askQuestion() { Question newQuestion = GameDBManager.getQuestion(); QA newQA = new QA(newQuestion); questionsAsked.Add(newQA); answeringOpen = true; questionReady = true; return(JsonMapper.ToJson(newQuestion)); }
private void showAnswersEvent(Object source, ElapsedEventArgs e) { answeringOpen = false; QA currentQuestion = questionsAsked.Last(); //show answers }