public static TreeView add_ControlProxies_for_Process(this TreeView treeView, Process process) { treeView.clear(); if (process.isProcessHooked()) { treeView.green(); var controlProxy =process.get_ControlProxy_for_MainWindowHandle(); if (controlProxy.notNull()) treeView.add_Node(controlProxy) .addChildControlProxies(controlProxy); } else { treeView.add_Node("INFO: Process not Hooked"); treeView.pink(); } return treeView; }