コード例 #1
0
ファイル: QuestionThree.cs プロジェクト: hszc/unity3d_test
        private void btnNext_Click(object sender, EventArgs e)
        {
            string strResult = "";

            if (rdYes.Checked)
            {
                strResult = "A";
            }
            if (rdNo.Checked)
            {
                strResult = "B";
            }

            M_QuestionnaireResultDetail question = new M_QuestionnaireResultDetail();

            question.QuestionCode   = Public.QuestionnaireCode.KangFuZuHuai + ".3";
            question.QuestionType   = 1;//单选
            question.QuestionResult = strResult;
            //打分
            if (strResult.Contains("A"))
            {
                question.QuestionScore = 5;
            }

            ClientInfo.AddQuestionToQuestionnaire(question, QuestionnaireCode.KangFuZuHuai);


            QuestionFour frmNext = new QuestionFour();

            frmNext.TopMost = false;
            frmNext.ShowDialog();
            this.Close();
        }
コード例 #2
0
        private void btnBefore_Click(object sender, EventArgs e)
        {
            QuestionFour frmBefore = new QuestionFour();

            frmBefore.TopMost = false;
            frmBefore.ShowDialog();
            this.Close();
        }