I have been taxed by a problem that my brain refuses to process.
I am developing an Windows Forms application that consists of a number of forms, each allowing users to carry out specific tasks. I want to be able to restrict certain users to certain tasks ie Administrator - Can do everything, Secretary - Can only view, not delete etc.
I have a database structure which details what a certain type of user can do which tasks. I want to able to load these details into a class when the application loads and use properties of the class to enforce the restrictions throughout the application.
However, i cant seem to figure out the best approach to this. Can I use a global class in vb.net that is visible to all the forms? If so, how do you set a global variable in vb.net (that is visible across multiple forms).
Any better ways of doing this? I would be grateful for any useful links that can help me out with this dilemma.