private static HtmlTag toTag(ValueSourceReport report)
        {
            var table = new DetailsTableTag();
            report.Values.OrderBy(x => x.Key).Each(pair => table.AddDetail(pair.Key, pair.Value));

            var tag = new CollapsibleTag(report.ElementId(), report.Header());
            tag.AppendContent(table);

            return tag.PrependAnchor();
        }
        private static HtmlTag toTag(ValueSourceReport report)
        {
            var table = new DetailsTableTag();

            foreach (var key in report.Values.GetAllKeys().OrderBy(x => x))
            {
                table.AddDetail(key, string.Join("; ", report.Values[key]));
            }

            var tag = new CollapsibleTag(report.ElementId(), report.Header());
            tag.AppendContent(table);

            return tag.PrependAnchor();
        }
Esempio n. 3
0
 protected override void startSource(IValueSource source)
 {
     _currentReport = new ValueSourceReport(source.Provenance);
     _reports.Add(_currentReport);
 }
Esempio n. 4
0
 protected override void startSource(IValueSource source)
 {
     _currentReport = new ValueSourceReport(source.Provenance);
     _reports.Add(_currentReport);
 }