public static void InitDB()
        {
            int totalcount = 0;
            ExamQuestionBusiness question = new ExamQuestionBusiness();

            QuestionData = question.GetData(EntityQuestion, null, out totalcount);
        }
        /// <summary>
        /// 新增保存
        /// </summary>
        private void updateEstimateQuestion()
        {
            #region
            this.QuestionRow[ExamQuestionData.questionName]    = this.tbQuestion.Text;
            this.QuestionRow[ExamQuestionData.questionScopeId] = this.cbQuestionScope.SelectedValue.ToString();

            this._answerEstimateData.Tables[0].Rows[0][ExamAnswerEstimateData.answer] = this.cbAnswerEstimate.IsChecked;

            ExamQuestionBusiness questionbusiness = new ExamQuestionBusiness();

            questionbusiness.EditEstimateQuestion(
                ref QuestionController.QuestionData,
                ref this._answerEstimateData);
            #endregion
        }
        /// <summary>
        /// 新增保存
        /// </summary>
        private void addEstimateQuestion()
        {
            #region
            EntityExamQuestion entityquestion = new EntityExamQuestion();
            entityquestion.questionName    = this.tbQuestion.Text;
            entityquestion.questionScopeId = this.cbQuestionScope.SelectedValue.ToString();
            entityquestion.questionTypeId  = this.cbQuestiontype.SelectedValue.ToString();
            entityquestion.usable          = "true";
            entityquestion.writeTime       = TimeManager.CurrentDBServerTime.ToString();

            this._entityAnswerEstimate           = new EntityExamAnswerEstimate();
            this._entityAnswerEstimate.answer    = this.cbAnswerEstimate.IsChecked.ToString();
            this._entityAnswerEstimate.writeTime = TimeManager.CurrentDBServerTime.ToString();

            ExamAnswerEstimateData answerestimatedata = new ExamAnswerEstimateData();
            ExamQuestionBusiness   questionbusiness   = new ExamQuestionBusiness();

            questionbusiness.AddEstimateQuestion(
                ref QuestionController.QuestionData, entityquestion,
                ref answerestimatedata, this._entityAnswerEstimate);
            #endregion
        }