コード例 #1
0
 private void ParseTable(IHtmlElement table)
 {
     foreach (var row in table.GetElementsByTagName("TR"))
         ParseRow(row);
 }
コード例 #2
0
        private void ParseRow(IHtmlElement row)
        {
            var cells = row.GetElementsByTagName("TD");

            if (IsDetailRow(row, cells)) {
                var details = (IList<IResultDetail>)_results.DetailList;
                details.Add(ParseDetail(cells));
                return;
            }

            if (IsSummaryRow(row, cells))
                ParseSummary(cells.First.Text);
        }