示例#1
0
 public string Print(Reporter reporter)
 {
     reporter.Indent();
     var result = PrintContent(reporter);
     reporter.Outdent();
     return result;
 }
示例#2
0
 public string Print(Reporter reporter)
 {
     reporter.Indent();
     var report = new StringBuilder();
     report.AppendLine(String.Format("{0}parkinglot: {1}", reporter.FormatString(), AvailablePosition()));
     reporter.Outdent();
     return report.ToString();
 }
示例#3
0
 private string PrintContent(Reporter reporter)
 {
     var report = new StringBuilder();
     report.AppendLine(String.Format("{0}parkingboy:", reporter.FormatString()));
     foreach (var parkinglot in parkinglots)
     {
         report.Append(parkinglot.Print(reporter));
     }
     return report.ToString();
 }