I've been working with Microsofts Composite UI Application Block and Smart Client Software Factory for a while now, and until this point haven't found a reasonable explanation or demonstration of how to code SmartParts (the panel in you example) and their controllers. I think I now "get it"!
Humble Dialog Box
By Richard Schmidt
Posted Friday 16th November 2007 00:27 GMT
A very nice description of the Humble Dialog Box patter as explained by Martin Fowler.
I have no idea what language you are using, but I have had a lot of success using jfcUnit with Java / Swing applications. End up writing unit test that can interact with the GUI.
When I am not using Swing I use the PresentationModel pattern, where I place all the login in the PresentationModel and simply have the GUI connected to the model via binding listeners.
The period for commenting on this story has finished
Find out how Trolltech has made it easy for developers to implement web content directly into their native applciations through the integration of the WebKit rendering engine.