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) { M_QuestionnaireResultDetail question1 = new M_QuestionnaireResultDetail(); if (rd1A.Checked) { question1.QuestionResult = "A"; } if (rd1B.Checked) { question1.QuestionResult = "B"; } if (rd1C.Checked) { question1.QuestionResult = "C"; } AddResult(question1, QuestionnaireCode.NaoCuZhong + ".4", 1); M_QuestionnaireResultDetail question2 = new M_QuestionnaireResultDetail(); if (chkA.Checked) { question2.QuestionResult += "A,"; } if (chkB.Checked) { question2.QuestionResult += "B,"; } if (chkC.Checked) { question2.QuestionResult += "C,"; } if (chkD.Checked) { question2.QuestionResult += "D,"; } if (chkE.Checked) { question2.QuestionResult += "E,"; } if (chkF.Checked) { question2.QuestionResult += "F,"; } if (chkG.Checked) { question2.QuestionResult += "G,"; } AddResult(question2, QuestionnaireCode.NaoCuZhong + ".4.1", 2); M_QuestionnaireResultDetail question3 = new M_QuestionnaireResultDetail(); if (rd2A.Checked) { question3.QuestionResult = "A"; } if (rd2B.Checked) { question3.QuestionResult = "B"; } AddResult(question3, QuestionnaireCode.NaoCuZhong + ".4.2", 1); QuestionFive frmNext = new QuestionFive(); frmNext.TopMost = false; frmNext.ShowDialog(); this.Close(); }