This is a perfect example of where n-tier design will help. By moving all your rules to validation objects, the code is centralized. There are some whitepapers on
www.comcodebook.com that may help.
>Hi
>
>My current application consists of many rules/validation (ie cannot do A unless B has been done. Cannot to D unless B comes from A - things like that), these rules are becoming very cluttered as they are spread amongst Methods amongst Forms..
>
>What I need to know is how people handle lots of complex rules and how they tie them in. What I am trying to achieve is an effective method that appears more logical than what it actually is, and is easy to maintain/amend.
>
>Any ideas/thoughts.
>
>I know I haven't gone into much detail, but I can if necessary
>
>Thanks
>Kev
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer