public static ctrl_TableList show_In_TableList(this List<FlawType> flaws , Control control) { control.clear(); var tableList = control.add_TableList(); Action showData = ()=>{ var selectedRows = from flaw in flaws select new {flaw.severity, flaw.categoryname, flaw.issueid, flaw.module, flaw.type, flaw.description, flaw.cweid, flaw.exploitLevel, flaw.categoryid, flaw.sourcefile, flaw.line, flaw.sourcefilepath, flaw.scope, flaw.functionprototype, flaw.functionrelativelocation}; tableList.show(selectedRows); tableList.makeColumnWidthMatchCellWidth(); }; tableList.onDrop( (file)=>{ var apiVeracode = new API_Veracode_DetailedXmlFindings().load(file); flaws = apiVeracode.flaws(); showData(); }); if (flaws.size()>0) showData(); else tableList.add_Column("note") .add_Row("drop a Veracode DetailedFindings Xml (or zip) file to view it") .makeColumnWidthMatchCellWidth(); return tableList; }