Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enabling/Disabling menu items

For any windows application there is a requirement to enable or disable menu items and buttons based on certain properties of a selected object. What are the design patterns you have employed to do that? I am currently developing an application that contains a number of projects and will require hundreds of menu items to change based on specific properties of each project. I am thinking to have a method that essentially goes through each menu item and checks the project properties. Any other ideas to suggest?

Just to clarify, I am talking about a c# winforms application.

like image 346
Dimitris Avatar asked Jan 20 '26 16:01

Dimitris


1 Answers

There's a nice article about it here: http://msdn.microsoft.com/en-us/magazine/cc188928.aspx

like image 117
Sander van Knippenberg Avatar answered Jan 23 '26 07:01

Sander van Knippenberg