private void onSubmitExercise(object sender, EventArgs e) { _currentAppState.SubmitButtonClicked(_answerRichTextBox.Text); DialogResult dr = MessageBoxHelper.QuestionYesNo(this, "Do you want to Submit now?"); if (dr == DialogResult.No) { return; } DisplayExerciseResult(); //QABot.SaveCurrentAnswer(_answerRichTextBox.Text, QABot.QuestionCount); this.ClearControls(); QABot.ResetQuestionCount(); QABot.ResetFailedQuestionCount(); _currentAppState.InitializeNew(); }