Esempio n. 1
0
        private void ProcessRow(HtmlNode formNode, ref List <RowModel> rowModel, int rowNumber)
        {
            List <ParseModel>      model          = new List <ParseModel>();
            IEnumerable <HtmlNode> nodeCollection = formNode.Descendants().Where(x => x.Name == "input" ||
                                                                                 x.Name == "select" ||
                                                                                 x.Name == "textarea" ||
                                                                                 x.Name == "table" ||
                                                                                 x.Name == "label").Where(x => x.Attributes["data-table-input"] == null);

            //IEnumerable<HtmlNode> links = formNode.;

            foreach (HtmlNode data in nodeCollection)
            {
                ProcessData(data, ref model);
            }
            RowModel dataRow = new RowModel();

            dataRow.Content   = model;
            dataRow.RowNumber = rowNumber;

            rowModel.Add(dataRow);
        }
Esempio n. 2
0
        private void ProcessRow(HtmlNode formNode, ref List<RowModel> rowModel, int rowNumber)
        {
            List<ParseModel> model = new List<ParseModel>();
            IEnumerable<HtmlNode> nodeCollection = formNode.Descendants().Where(x => x.Name == "input" ||
                x.Name == "select" ||
                x.Name == "textarea" ||
                x.Name == "table" ||
                x.Name == "label").Where(x => x.Attributes["data-table-input"] == null);
            //IEnumerable<HtmlNode> links = formNode.;

            foreach (HtmlNode data in nodeCollection)
            {
                ProcessData(data, ref model);
            }
            RowModel dataRow = new RowModel();
            dataRow.Content = model;
            dataRow.RowNumber = rowNumber;

            rowModel.Add(dataRow);
        }