public static void createFindingsFromStrutsMappings(IStrutsMappings strutsMappings, ascx_FindingsViewer findingsViewer_ToLoadResults) { var createdFindings = StrutsMappingHelpers.createFindingsFromStrutsMappings(strutsMappings); findingsViewer_ToLoadResults.setTraceTreeViewVisibleStatus(true); findingsViewer_ToLoadResults.setFilter2Value("(no filter)"); findingsViewer_ToLoadResults.loadO2Findings(createdFindings, true); }
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); }
public static ascx_FindingsViewer filter2(this ascx_FindingsViewer findingsViewer, string filterValue) { findingsViewer.setFilter2Value(filterValue); return(findingsViewer); }