Applying Decorator To Control Menus

This article of mine on code project talks about one of the applications of Decorator pattern. Any GUI based application that are menu driven would have some logic to turn on / off the menu items based on different set of attributes like ( Licensing policies, user roles, application state etc ). Decorator comes handy on keeping this implementation extensible and maintainable. Here is the link to the article. Happy reading!

http://www.codeproject.com/KB/architecture/MenuStateHandling.aspx

Advertisements

.Net Generics – 3

Generic Async Factory

Some time back I had publised an article on code project on a reusable asnychronous factory type based on Generics. Here is the link to that article. Happy reading!

http://www.codeproject.com/KB/cs/GenericAsyncFactory.aspx