/// <inheritdoc/> public override string ModelSummary(bool formatForParentControl) { using (StringWriter htmlWriter = new StringWriter()) { htmlWriter.Write($"\r\n<div class=\"activityentry\"><span class=\"setvalue\">{Proportion.ToString("p0")}</span> of the individuals will be "); if (RuminantTypeName == null || RuminantTypeName == "") { htmlWriter.Write("<span class=\"errorlink\">TYPE NOT SET</span>"); } else { htmlWriter.Write("<span class=\"resourcelink\">" + RuminantTypeName + "</span>"); } cohortFound = FindAllChildren <RuminantTypeCohort>().Count() > 0; if (cohortFound) { htmlWriter.Write($" with the following details:</div>"); } else { htmlWriter.Write($"</div>"); htmlWriter.Write($"\r\n<div class=\"activityentry\"><span class=\"errorlink\">No <span class=\"resourcelink\">RuminantCohort</span> describing the individuals was provided!</div>"); } return(htmlWriter.ToString()); } }
public string[] ChangeToTable() { return(new[] { Key, Question_Key, Menu_No, Trade_No, Proportion.ToString(), Sort.ToString() }); }