D
Dave Veeneman
I've just finished an app with some fairly complex menu handling. Lots of
different groups of items to be enabled/disabled depending on user activity.
My code works fine, but it's really ugly. A long change of switch-case
statements. There has got to be a better way, without spending three weeks
factoring the menus into classes.
Are there any good resources (articles, book chapters) that suggest simple
ways to organize menu-handling, other than the obvious switch case? Thanks.
different groups of items to be enabled/disabled depending on user activity.
My code works fine, but it's really ugly. A long change of switch-case
statements. There has got to be a better way, without spending three weeks
factoring the menus into classes.
Are there any good resources (articles, book chapters) that suggest simple
ways to organize menu-handling, other than the obvious switch case? Thanks.