Before we embark on writing our first custom resource manager, you might like to look at the demo program in the source code for this book. The Custom Resource Managers Examples application (see Figure 12.4) enables you to experiment with the completed resource managers, and you may find this helpful in visualizing their operation and behavior. Figure 12.4. Custom Resource Managers Examples ApplicationTo use the DbResourceManager, you first need to create the required SQL Server database and fill it with data. You can do this by clicking on the Create Example Database button. This creates the "CustomResourceManagersExample" database. You can verify that the resource manager is reading from the database by changing the contents of the ResourceSets table and observing the changes in the demo program. This is particularly effective when changing the entries for "Form2" (you can see Form2 by clicking on the "Show Form2" button). |