In my project I have a requirement that all controls in each window shall be enabled or visible dependent on user and the admin shall be able to change is a user will be able to use or see the control.
I made a very simple test application that creates a user and gives him a list (will be loaded from db in real app) of the name of the controls in the window and also his settings. Then after initializing the window I use reflection to find the controls
and set their isenabled/visibility properties. This solution does the thing but I'm wondering if there is a better solution.
The main issue here is that each control must be set per user and thus roles wont work appropriate and also that I need to be able to change the settings at runtime.
View Complete Post