private void btnBefore_Click(object sender, EventArgs e) { QuestionFive frmBefore = new QuestionFive(); frmBefore.TopMost = false; frmBefore.ShowDialog(); this.Close(); }
private void btnNext_Click(object sender, EventArgs e) { string strResult = ""; if (rdA.Checked) { strResult = "A"; } if (rdB.Checked) { strResult = "B"; } if (rdC.Checked) { strResult = "C"; } if (rdD.Checked) { strResult = "D"; } M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail(); question.QuestionCode = Public.QuestionnaireCode.KangFuZuHuai + ".4"; question.QuestionType = 1;//单选 question.QuestionResult = strResult; //打分 int score = 0; if (strResult.Contains("A") || strResult.Contains("B") || strResult.Contains("C")) { score += 15; } question.QuestionScore = score; ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.KangFuZuHuai); QuestionFive frmNext = new QuestionFive(); frmNext.TopMost = false; frmNext.ShowDialog(); this.Close(); }