Learning by Example: The Hotel Reservations Desk

To reinforce the topics discussed in this chapter, this “learning by example” application presents an XML reading “wrapper” for a fictitious hotel chain. The application's goal is to allow customer service representatives to look up current hotel reservations in a data store (an XML file). The program first forces you to constrain your search to a specific hotel and then allows searching by last name, first name, or check-in date.

After the search is executed, a list of guest IDs that match the supplied criteria will show up in a list box. The user can then select one of these guests to view detailed information.

Figure 10.9 shows the application in action.

Figure 10.9. The main window.

Key Concepts ...

Get Visual Basic® Programmer's Guide to the .NET Framework Class Library now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.