private void btnBefore_Click(object sender, EventArgs e) { QuestionFour frmBefore = new QuestionFour(); 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 + ".3", 1); M_QuestionnaireResultDetail question2 = new M_QuestionnaireResultDetail(); //question2.QuestionResult = dtpConfirm.Value.ToString(); question2.QuestionResult = cbxYear.Text + "/" + cbxMonth.Text + "/" + cbxDay.Text + " " + DateTime.Now.TimeOfDay; AddResult(question2, QuestionnaireCode.NaoCuZhong + ".3.1", 3); M_QuestionnaireResultDetail question3 = new M_QuestionnaireResultDetail(); if (rd2A.Checked) { question3.QuestionResult = "A"; } if (rd2B.Checked) { question3.QuestionResult = "B"; } AddResult(question3, QuestionnaireCode.NaoCuZhong + ".3.2", 1); M_QuestionnaireResultDetail question4 = new M_QuestionnaireResultDetail(); question4.QuestionResult = txtSugar.Text.Trim(); AddResult(question4, QuestionnaireCode.NaoCuZhong + ".3.3", 3); QuestionFour frmNext = new QuestionFour(); frmNext.TopMost = false; frmNext.ShowDialog(); this.Close(); }