public override StringBuilder Represent(SearchResult searchResult) { StringBuilder builder = new StringBuilder(); for (int t = 0; t < searchResult.TableCount; t++) { int k = 0; for (; k < searchResult.Count; k++) { if (searchResult[k].SheetNames[t] != null) { break; } } if (k >= searchResult.Count) { continue; } Base.Prefix.Prefix = searchResult[k].SheetNames[t]; builder.Append(Base.Represent(searchResult, t)); } IRepresenter allCount = new CountRepresenter(new Representer()); builder.Append(allCount.Represent(searchResult)); return(builder); }
public override StringBuilder Represent(SearchResult searchResult) { StringBuilder builder = new StringBuilder(); for (int k = 0; k < searchResult.Count; k++) { builder.AppendLine(searchResult.Keys[k] + " :"); builder.Append(Base.Represent(searchResult[k])); builder.AppendLine(); } IRepresenter allCount = new CountRepresenter(new Representer()); builder.Append(allCount.Represent(searchResult)); return(builder); }