private void ConfigureQuestion(int step)
        {
            Question question = new Question(questions[step]);
            MultiView1.SetActiveView(questionView);

            nextImageButton.Visible = false;

            if (step + 1 > 1)
                backImageButton.Visible = true;
            else
                backImageButton.Visible = false;

            if (question.questionTypeID == 1) {
                ImageButtonsDiv.Visible = true;
                commentsTextBox.Visible = false;
                submitImageButton.Visible = false;
            }
            else {
                ImageButtonsDiv.Visible = false;
                commentsTextBox.Visible = true;
                submitImageButton.Visible = true;
                commentsTextBox.Text = "";
            }
            questionLabel.Text = question.questionDescription;
            countLabel.Text = surveyStep.ToString() + " of " + questions.Count.ToString();
        }
示例#2
0
 public Question(Question question)
 {
     questionID = question.questionID;
     questionDescription = question.questionDescription;
     questionTypeID = question.questionTypeID;
 }