public virtual void SubmitInfo(string value) { ExtraRecordItem r = new ExtraRecordItem(); r.name = name_of_info; r.value = value; Trial.trial.AddSurveyResultsToRecords(r); Next(); }
public virtual void AddSurveyResultsToRecords(ExtraRecordItem r) { // Add to the last X trial records that this survey applied to for (int x = current_round; x > 0; x--) { if (x != current_round && survey_rounds[x - 1]) { break; } round_results[x - 1].survey_questions.Add(r); } }