D. Menu Processing
A WorkItem often tries to perform its user interface extensions as early in its lifetime as possible. The usual location for the extension code is the Run method of the Controller class on the ControlledWorkItem, which the ModuleInit class calls at startup time.
The facing page shows that method of the sample controller. For logistical convenience and clarity of explanation, I've broken down the user interface extension process into the separate utility functions that you see. Each extends one particular user interface object. Some of them are generated by the SCSF Wizard, whereas others I added myself.
Sometimes you just want to add menu items and toolbar buttons and receive commands from them. At other times, however, you want ...