private void SetScore()
        {
            ExamType examinationType = (ExamType)_examList.Single(e => e.ExamId == _examId).ExaminationType;

            if (examinationType == ExamType.MultipleChoice)
            {
                if (chkChoice1.Checked == false && chkChoice2.Checked == false &&
                    chkChoice3.Checked == false && chkChoice4.Checked == false)
                {
                    _examineeAnswer = null;
                }
            }
            else if (examinationType == ExamType.TrueOrFalse)
            {
                if (chkTrue.Checked == false && chkFalse.Checked == false)
                {
                    _examineeAnswer = null;
                }
            }
            else if (examinationType == ExamType.TypeTheAnswer)
            {
                _examineeAnswer = string.IsNullOrWhiteSpace(txtAnswer.Text) == true ? null : txtAnswer.Text;
            }

            _examAnswer                  = _examineeExamList[_index].ExamineeAnswer.Single(e => e.QuestionId == _questionBank.QuestionId);
            _examAnswer.Answer           = _examineeAnswer;
            _examAnswer.DateTimeAnswered = _dateTime;

            if (string.Compare(_correctAnswer, _examineeAnswer, false) == 0)
            {
                _examScore++;
                _examAnswer.IsCorrect = true;
            }
        }
 private void detach_ExamineeAnswer(ExamineeAnswer entity)
 {
     this.SendPropertyChanging();
     entity.Question = null;
 }
 private void attach_ExamineeAnswer(ExamineeAnswer entity)
 {
     this.SendPropertyChanging();
     entity.OnlineExamine = this;
 }
 partial void DeleteExamineeAnswer(ExamineeAnswer instance);
 partial void UpdateExamineeAnswer(ExamineeAnswer instance);
 partial void InsertExamineeAnswer(ExamineeAnswer instance);