Пример #1
0
 public static API_Veracode_DetailedXmlFindings show_In_TreeView(this API_Veracode_DetailedXmlFindings apiVeracode)
 {
     return(apiVeracode.show_In_TreeView("TreeView of Veracode Xml File".showAsForm()));
 }
Пример #2
0
        public static API_Veracode_DetailedXmlFindings add_MultipleGuiViewers(this API_Veracode_DetailedXmlFindings apiVeracode, Control control)
        {
            var topPanel = control.clear();

            topPanel.insert_LogViewer();
            var viewersPanel = topPanel.insert_Left(200, "Viewers");

            var viewInTreeView         = viewersPanel.add_Link("View in TreeView", 0, 0, () => apiVeracode.show_In_TreeView(topPanel));
            var viewInTableList        = viewersPanel.add_Link("View in TableList", 20, 0, () => apiVeracode.show_In_TableList(topPanel));
            var viewInSourceCodeViewer = viewersPanel.add_Link("View in SourceCodeViewer", 40, 0, () => apiVeracode.show_Flaws_In_SourceCodeViewer(topPanel));

            var sourceCodePaths = viewersPanel.insert_Below("Source Code Paths").add_TextArea();

            sourceCodePaths.onTextChange(
                (text) => {
                apiVeracode.SourceCodePaths.Clear();
                apiVeracode.SourceCodePaths.AddRange(text.split_onLines().ToArray());
            });

            viewersPanel.onDrop(
                (file) => {
                if (file.fileExists())
                {
                    apiVeracode.load(file);
                    viewInSourceCodeViewer.click();
                }
            });

            viewInSourceCodeViewer.click();


            viewersPanel.add_Label("DROP XML FILE HERE to load it", 100, 0).font_bold();
            return(apiVeracode);
        }