/// <summary> /// Provides the description of the model settings for summary (GetFullSummary) /// </summary> /// <param name="formatForParentControl">Use full verbose description</param> /// <returns></returns> public override string ModelSummary(bool formatForParentControl) { string html = ""; html += "\n<div class=\"activityentry\">"; html += "\nThe rainfall year starts in "; if (StartSeasonMonth == MonthsOfYear.NotSet) { html += "<span class=\"errorlink\">Not set"; } else { html += "<span class=\"setvalue\">"; html += StartSeasonMonth.ToString(); } html += "</span>"; html += "\n</div>"; html += "\n<div class=\"activityentry\">"; html += "\n<div class=\"warningbanner\">WARNING: Rainfall years are being shuffled as a proxy for stochastic rainfall variation in this simulation.<br />This is an advance feature provided for particular projects.</div>"; html += "\n</div>"; return(html); }
/// <inheritdoc/> public override string ModelSummary() { using (StringWriter htmlWriter = new StringWriter()) { htmlWriter.Write("\r\n<div class=\"activityentry\">"); htmlWriter.Write("\r\nThe rainfall year starts in "); if (StartSeasonMonth == MonthsOfYear.NotSet) { htmlWriter.Write("<span class=\"errorlink\">Not set"); } else { htmlWriter.Write("<span class=\"setvalue\">"); htmlWriter.Write(StartSeasonMonth.ToString()); } htmlWriter.Write("</span>"); htmlWriter.Write("\r\n</div>"); htmlWriter.Write("\r\n<div class=\"activityentry\">"); htmlWriter.Write("\r\n<div class=\"warningbanner\">WARNING: Rainfall years are being shuffled as a proxy for stochastic rainfall variation in this simulation.<br />This is an advance feature provided for particular projects.</div>"); htmlWriter.Write("\r\n</div>"); return(htmlWriter.ToString()); } }