public IEnumerable <string> ToColumnReport(string Title = null) { var report = new ReportList(); if (Title != null) { report.WriteTextLine(Title); } foreach (var workstationCmd in this) { if (workstationCmd is WriteToDisplayCommand) { report.WriteGapLine(); report.WriteTextLine("Write to display command"); var wtdCmd = workstationCmd as WriteToDisplayCommand; var printedLines = wtdCmd.ToColumnReport(); report.WriteTextLines(printedLines); } else if (workstationCmd is IDataStreamReport) { report.WriteGapLine(); var iReport = workstationCmd as IDataStreamReport; var report2 = iReport.ToColumnReport(); report.WriteTextLines(report2); } else { var textLine = workstationCmd.ToString(); report.WriteTextLine(textLine); } } return(report); }
public IEnumerable <string> ToColumnReport(string Title = null) { var report = new ReportList(); // WTD command defn to column report form. report.WriteTextLines(this.DefnToColumnReport()); report.WriteGapLine(); var lines = wtdReport.Print_WTD_Orders(this); report.WriteTextLines(lines); return(report); }