Re: Actions i WinForms (C#) ?
- From: "redsolo" <eramfelt@xxxxxxxxx>
- Date: 26 Sep 2006 00:29:21 -0700
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
.
- Follow-Ups:
- Re: Actions i WinForms (C#) ?
- From: mabster
- Re: Actions i WinForms (C#) ?
- References:
- Actions i WinForms (C#) ?
- From: eramfelt
- Re: Actions i WinForms (C#) ?
- From: mabster
- Actions i WinForms (C#) ?
- Prev by Date: RE: How to display ToolTip for disabled Controls
- Next by Date: Re: Actions i WinForms (C#) ?
- Previous by thread: Re: Actions i WinForms (C#) ?
- Next by thread: Re: Actions i WinForms (C#) ?
- Index(es):