public DemographicQuestion(int questionNumber, String fontType, String fontColour, int fontSize, QuestionChart resultsChart, CountdownTimer countdownTimer, ResponseCounter responseCounter, CorrectAnswerIndicator correctAnswerIndicator, ResponseGrid responseGrid) { this.questionID = -1; this.question = String.Empty; this.creationTime = DateTime.Now; this.deletionTime = null; this.questionNumber = questionNumber; this.type = QuestionType.Demographic; this.fontType = fontType; this.fontColour = fontColour; this.fontSize = fontSize; this.feedback = new HashSet<Feedback>(); this.resultsChart = new QuestionChart(resultsChart); this.comparisonChart = new QuestionChart(resultsChart); this.asynchronous = true; this.responded = new HashSet<Participant>(); this.countdownTimer = new CountdownTimer(countdownTimer); this.responseCounter = new ResponseCounter(responseCounter); this.correctAnswerIndicator = new CorrectAnswerIndicator(correctAnswerIndicator); this.responseGrid = new ResponseGrid(responseGrid); this.allowedAnswers = 1; this.options = new List<QuestionOption>(); this.compareWith = null; this.linkedField = null; }
public AlphanumericQuestion(int questionNumber, String fontType, String fontColour, int fontSize, QuestionChart resultsChart, CountdownTimer countdownTimer, ResponseCounter responseCounter, CorrectAnswerIndicator correctAnswerIndicator, ResponseGrid responseGrid) { this.questionID = -1; this.question = String.Empty; this.creationTime = DateTime.Now; this.deletionTime = null; this.questionNumber = questionNumber; this.type = QuestionType.Alphanumeric; this.fontType = fontType; this.fontColour = fontColour; this.fontSize = fontSize; this.feedback = new HashSet<Feedback>(); this.resultsChart = new QuestionChart(resultsChart); this.comparisonChart = new QuestionChart(resultsChart); this.asynchronous = true; this.responded = new HashSet<Participant>(); this.countdownTimer = new CountdownTimer(countdownTimer); this.responseCounter = new ResponseCounter(responseCounter); this.correctAnswerIndicator = new CorrectAnswerIndicator(correctAnswerIndicator); this.responseGrid = new ResponseGrid(responseGrid); this.answers = new List<CorrectAnswer>(); this.responses = new HashSet<ShortResponse>(); }
public CustomQuestion(int questionNumber, ICollection<Feedback> feedback, QuestionChart resultsChart, QuestionChart comparisonChart, CountdownTimer countdownTimer, ResponseCounter responseCounter, CorrectAnswerIndicator correctAnswerIndicator, ResponseGrid responseGrid, CustomQuestion compareWith) { this.questionID = -1; this.question = compareWith.question; this.creationTime = DateTime.Now; this.deletionTime = null; this.questionNumber = questionNumber; this.type = QuestionType.Custom; this.fontType = compareWith.fontType; this.fontColour = compareWith.fontColour; this.fontSize = compareWith.fontSize; this.feedback = feedback; this.resultsChart = resultsChart; this.comparisonChart = comparisonChart; this.asynchronous = true; this.responded = new HashSet<Participant>(); this.countdownTimer = countdownTimer; this.responseCounter = responseCounter; this.correctAnswerIndicator = correctAnswerIndicator; this.responseGrid = responseGrid; this.allowedAnswers = compareWith.allowedAnswers; this.options = compareWith.options; this.compareWith = compareWith; }
public DemographicQuestion(int questionNumber, QuestionChart resultsChart, QuestionChart comparisonChart, CountdownTimer countdownTimer, ResponseCounter responseCounter, CorrectAnswerIndicator correctAnswerIndicator, ResponseGrid responseGrid, DemographicQuestion compareWith, ParticipantField linkedField) { this.questionID = -1; this.question = compareWith.question; this.creationTime = DateTime.Now; this.deletionTime = null; this.questionNumber = questionNumber; this.type = QuestionType.Demographic; this.fontType = compareWith.fontType; this.fontColour = compareWith.fontColour; this.fontSize = compareWith.fontSize; this.resultsChart = resultsChart; this.comparisonChart = comparisonChart; this.asynchronous = true; this.responded = new HashSet<Participant>(); this.countdownTimer = countdownTimer; this.responseCounter = responseCounter; this.correctAnswerIndicator = correctAnswerIndicator; this.responseGrid = responseGrid; this.allowedAnswers = compareWith.allowedAnswers; this.options = compareWith.options; this.compareWith = compareWith; this.linkedField = linkedField; }
public CorrectAnswerIndicator(CorrectAnswerIndicator correctAnswerIndicator) { this.objectID = -1; this.active = correctAnswerIndicator.active; }