O
ohmmega
hello,
i'm new to c# and wanted to know a simple way to hide forms-stuff
(like buttons) depending on a user level:
example:
user1 logs in -> userlevel admin -> everything is just fine and
visible
user2 logs in -> userlevel oh_no -> only the log off button is visible
it should be possible to change the userlevel during runtime... hm. i
could do it the oldschool-way with if-then-else mnemonics, but i don't
wanna.
i already read about attributes and reflection - would this be a good
track to follow? are there other (maybe wiser) ways?
thank's for helping
rené p.
i'm new to c# and wanted to know a simple way to hide forms-stuff
(like buttons) depending on a user level:
example:
user1 logs in -> userlevel admin -> everything is just fine and
visible
user2 logs in -> userlevel oh_no -> only the log off button is visible
it should be possible to change the userlevel during runtime... hm. i
could do it the oldschool-way with if-then-else mnemonics, but i don't
wanna.
i already read about attributes and reflection - would this be a good
track to follow? are there other (maybe wiser) ways?
thank's for helping
rené p.