public void createGUI()
        {
            //this.add_LogViewer();
            var columns = new List <string> {
                "ProcessName", "Id", "SessionId", "MainModule", "MainWindowTitle", "FileName", "WorkingDirectory", "Arguments"
            };

            tableList = this.add_TableList("Processes");
            Action refresh =
                () => {
                tableList.setDataTable(GetRunningProcesses());
            };

            tableList.afterSelect(
                (listViewItems) =>
            {
                "Selected row(s) values:".debug();
                foreach (var listViewItem in listViewItems)
                {
                    listViewItem.values().showInLog();
                }
            });
            tableList.add_ContextMenu()
            .add_MenuItem("refresh", () => refresh());
            tableList.insert_LogViewer();

            refresh();
        }
 public static ctrl_TableList show <T>(this ctrl_TableList tableList, IEnumerable <T> collection, params string[] columnsToShow)
 {
     tableList.setDataTable(collection.dataTable(columnsToShow));
     return(tableList);
 }