protected void ReportItem(string text, StatusReport.Type type = StatusReport.Type.TYPICAL) { if (statusReport != null) { statusReport.AddItem(text, type, this); } }
protected void ReportItem(string text, StatusReport.Type type = StatusReport.Type.TYPICAL) { if (statusReport == null) { throw new Exception("No valid status report set, with SetStatusReport(statusReport), before ReportItem(text, type): " + this.ToString()); } statusReport.AddItem(text, type, this); }