Beispiel #1
0
        //When the table has 4 columns, it could contain platform or components, that is the reason we have sysorComponent value
        public void processRowFourCols(Novacode.Row rowContent)
        {
            string content;

            if (rowContent.Cells.Count == 4)  //there are some cases in which the tool finds a cell in the middle that has a comment and NOT actual data
            {
                foundstone.writePlatformOrComponentAndKB(rowContent.Cells[0].Paragraphs[0].Text);
                content = foundstone.utilities.getTextFromCell(rowContent.Cells[0].Paragraphs);
                if (foundstone.myTable.isSystem())
                {
                    foundstone.writeSystem(content); // we are doing this because there maybe more than one componenet
                }
                else
                {
                    foundstone.writeComponent(content); // we are doing this because there maybe more than one componenet
                }
            }
        }
Beispiel #2
0
        //When the table has 4 columns, it could contain platform or components, that is the reason we have sysorComponent value
        public void processRowFourCols(HtmlNodeCollection rowContent)
        {
            /*string content, bulletinsRep;
             * scap.writePlatformOrComponentAndKB(rowContent[0].InnerText, rowContent[3].InnerText);
             * scap.sheet.Cells[scap.getRow(), scap.getCdAt("risk")] = rowContent[2].InnerText;
             * content = rowContent[0].InnerText;
             * bulletinsRep = rowContent[3].InnerText;
             * if (scap.myTable.isSystem())
             *  scap.writeSystem(content, bulletinsRep); // we are doing this because there maybe more than one componenet
             * else
             *  scap.writeComponent(content, bulletinsRep);*/
            string content;

            foundstone.writePlatformOrComponentAndKB(rowContent[0].InnerText);
            content = rowContent[0].InnerText;
            if (foundstone.myTable.isSystem())
            {
                foundstone.writeSystem(content); // we are doing this because there maybe more than one componenet
            }
            else
            {
                foundstone.writeComponent(content); // we are doing this because there maybe more than one componenet
            }
        }