Best design practise

Amand77

Newcomer
Joined
Aug 5, 2009
Messages
1
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....
 
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.
 
Back
Top