Show result in treeview from any query
Control exit program, and modifications events system