Re: Actions i WinForms (C#) ?
- From: mabster <mabster@xxxxxxxxxxxx>
- Date: Tue, 26 Sep 2006 09:25:20 +1000
eramfelt@xxxxxxxxx wrote:
I have a question on what the "proper" way is to link Controls and
logic? At my current project, which is a C# .NET 2.0 GUI application,
they use events to listen on buttons/lists/menu items. Ie. the code for
linking an action/logic to a button it looks like btn_Clicked(), and so
on (list_DblClicked(), list_KeyUp(), etc.) Is this the preferred way to
link control and logic?
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.
I haven't made it publicly available, but if you email me I'd be happy to send you the DLL.
Matt
.
- Follow-Ups:
- Re: Actions i WinForms (C#) ?
- From: redsolo
- Re: Actions i WinForms (C#) ?
- References:
- Actions i WinForms (C#) ?
- From: eramfelt
- Actions i WinForms (C#) ?
- Prev by Date: Re: ListView in framework 1.1 paints a lasr blank column
- Next by Date: How to get the system drive info?
- Previous by thread: Actions i WinForms (C#) ?
- Next by thread: Re: Actions i WinForms (C#) ?
- Index(es):