I took this code segment from existing source on Android, but it applies to anything from ASP.NET Forms to anything else where the UI has an event callback, and the logic is implemented directly in that callback. That's basically "Smart UI", aka it is the GUI itself that knows how to execute the ...