Programming Microsoft® Composite UI Application Block and Smart Client Software Factory
by David S. Platt
C. WorkItem Details
The main purpose of a WorkItem today is to facilitate loose coupling by holding certain classes of objects in well-known locations so that other objects can find the resources that they need to do their jobs. To accomplish this, the WorkItem class contains a number of collections, as shown in Table 3-1. All of them are strongly typed except Items, which exists to hold anything not served by a strongly typed collection.
Table 3-1. Collections of the WorkItem Class
Property Name
Description
Searches Parent
Commands
Command objects, used for tying .NET events from user interface objects such as menus to business logic methods (see Chapter 5).
Yes
EventTopics
EventTopic objects, used in conjunction with CAB's loosely coupled publish-and-subscribe ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access