Amand77 Posted August 5, 2009 Posted August 5, 2009 Hi, Im having trouble designing this... Any help would be appreciated... (Im using C#) I have 2 classes A, and B, each with a few integer and float properties. How would I go about designing this, if the requirement is that the user needs to be able to add in rules (at runtime) relating to these properties. Example... At runtime, the user needs to be aware of the properties in Class A and B (possibly through reflection ?), and be able to add a 'rule' ...eg. "if property A1 from class A is > property B2 from class B".. then perform some alert. The user should be able to add some sort of comparison rule (<, >, =) of any of the float/integer properties between Class A and B. Thanks.... Quote
joe_pool_is Posted August 17, 2009 Posted August 17, 2009 You'd have to create an interface for the user to select from a radio button or something. Based on their selection, you'd have to write something to read from your two classes and compare the values. Quote Avoid Sears Home Improvement
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.