I'd like to get ideas on managing the main menu items in a Winforms application (VB.Net in this case). By management, I mean the items' enabled/disabled state depending upon a user's permissions, which are part of our business model.
Currently I use a routine which enables/disables menu items based on permissions, which is called from dozens of places within the application after selecting rows in a grid, saving records, deleting records, opening forms, etc. This has grown cumbersome due to the high maintenance factor. In addition, it interferes with correct painting in some grids.
The only other method I've seen is to determine the items' state when clicking on or dropping down the menu-related objects. Does anyone have a template or resource that I might make use of?
Thanks!