Display ALL Broken Rules

Display ALL Broken Rules

Old forum URL: forums.lhotka.net/forums/t/2318.aspx


d0tnetdude posted on Sunday, February 11, 2007

How is everyone else handling the display of broken rules, including the parent and any children? 

We don't use the Error Provider to display errors, but rather we display a pop-up dialog of the broken rules.  We are currently getting ready to move to the 2.0 framework and I was wondering how others are handing this?

We currently use a helper class that was written by someone (not sure who, but thanks!) for version 1.0 of the CSLA Framework.  The class took a business object and, via reflection, built a complete list of rules for the parent and all subsequent children.

We are also looking at create a commerical software package and from a design perspective, were wondering just what is the best way to display broken rules to the end user!

Thanks! d0tnetdude

Brian Criswell replied on Sunday, February 11, 2007

Look at the error tree control that Xal added to CSLAcontrib.

d0tnetdude replied on Monday, February 12, 2007

Thanks Brian!  I'll take a look at that!

JoeFallon1 replied on Monday, February 12, 2007

If you search this forum you may find an old post of mine where I re-wrote the 1.x AllRules method in 2.0. I prefer having the list of all rules and child rules in one place. So this uses reflection to do it. It also took some interfaces as I recall. Let me know if you find the code.

Joe

I think this is the thread:

http://forums.lhotka.net/forums/post/7444.aspx

 

Copyright (c) Marimer LLC