Beispiel #1
0
        public static void runFilterOn_FinalSinksFindings(List <IO2Finding> sourceFindings, string sinkSignatures, ascx_FindingsViewer findingsViewer_ToLoadResults)
        {
            var results = new List <IO2Finding>();

            foreach (O2Finding o2Finding in sourceFindings)
            {
                if (RegEx.findStringInString(o2Finding.Sink, sinkSignatures))
                {
                    results.Add(o2Finding);
                }
            }

            findingsViewer_ToLoadResults.setFilter1Value("Sink");
            findingsViewer_ToLoadResults.setFilter2Value("Source");
            findingsViewer_ToLoadResults.loadO2Findings(results, true);
        }
Beispiel #2
0
 public static ascx_FindingsViewer filter1(this ascx_FindingsViewer findingsViewer, string filterValue)
 {
     findingsViewer.setFilter1Value(filterValue, true);
     return(findingsViewer);
 }