Re: Actions i WinForms (C#) ?



First, sorry for the double posting. I screwed up.. (and thanks for not
flaming me)

I've written a little extender/provider component to add an "Action"
property to buttons, menu items etc. Each "action" has an "Execute"
event and all the properties you'd expect - Text, Enabled, ToolTipText
etc - which flow through to the controls the action is bound to.

But as I understand there is no support for this more MVC compliant
approach in the .NET framework? I still need to go through all the
buttons/menu items/etc and disable them when the functionality should
be not available.

Of course it is a little more hard work to do it in Java, but the
benefit is that you wont have a problem adding buttons/controls that do
the same thing as you dont have to re-implement anything.


//Erik
http://redsolo.blogspot.com

.


Quantcast