/// <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) { using (StringWriter htmlWriter = new StringWriter()) { htmlWriter.Write("\r\n<div class=\"filter\">"); htmlWriter.Write("Perform between "); if (StartMonth == 0) { htmlWriter.Write("<span class=\"errorlink\">NOT SET</span>"); } else { htmlWriter.Write("<span class=\"setvalueextra\">"); htmlWriter.Write(StartMonth.ToString() + "</span>"); } htmlWriter.Write(" and <span class=\"setvalueextra\">"); if (EndMonth == 0) { htmlWriter.Write("<span class=\"errorlink\">NOT SET</span>"); } else { htmlWriter.Write("<span class=\"setvalueextra\">"); htmlWriter.Write(EndMonth.ToString() + "</span>"); } htmlWriter.Write("</div>"); if (!this.Enabled) { htmlWriter.Write(" - DISABLED!"); } return(htmlWriter.ToString()); } }
/// <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=\"filter\">"; html += "Perform between "; if (StartMonth == 0) { html += "<span class=\"errorlink\">NOT SET</span>"; } else { html += "<span class=\"setvalueextra\">"; html += StartMonth.ToString() + "</span>"; } html += " and <span class=\"setvalueextra\">"; if (EndMonth == 0) { html += "<span class=\"errorlink\">NOT SET</span>"; } else { html += "<span class=\"setvalueextra\">"; html += EndMonth.ToString() + "</span>"; } html += "</div>"; if (!this.Enabled) { html += " - DISABLED!"; } return(html); }