Summary


In this chapter you have built a complete system for trapping and displaying business rule violations to the user interface. You have done this by creating your own exceptions that inherit from .NET's base exception class and by making your objects self-aware. You have seen the powerful and reusable BrokenRules class to keep track of your objects' state. Through this class you have given an object the ability to tell any of the objects' consumers that the object is valid or invalid.

The user now has a quick, easy, and powerful way to see the rules that they have broken and all of the objects' rules if they want to. In Chapter 10, "Using Reflection," you will take this class and turn it into a truly self-aware class!

In the next chapter you will take a break from your objects and concentrate on the user interface. You will implement the standard cut, copy, paste, find, and select all methods that seem to be missing from most internal business applications. You will also create a dynamic menu structure, add a status bar, and dynamically add and remove resources.




Building Client/Server Applications with VB. NET(c) An Example-Driven Approach
Building Client/Server Applications Under VB .NET: An Example-Driven Approach
ISBN: 1590590708
EAN: 2147483647
Year: 2005
Pages: 148
Authors: Jeff Levinson

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net