Пример #1
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();
 }
Пример #2
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();
 }