Sunday, May 20, 2007

Easier WinForm UI Multithreading Support

ISerializable - Roy Osherove's Blog - Easier Winform UI Thread Safe Methods with DynamicProxy2 and Osherove.SimpleInterception

"Wouldn't it be cool if you could write something like this in your winform apps? :

[RunInUIThread]
protected virtual void DoSomeUIStuff()
{
this.Text = "hey"
}

Download the binary files from here. (here are the source files)

Inspired by Ayende's talk at devTeach where he showed using Castle Windsor, I decided to take a closer look at how to implement a UI-Thread-Safe solution for winforms, based on his talk.

..."

That WOULD be cool, very cool. Much easier than the InvokeRequired/Delegate game...

I want to take a good close look at this (and the Castle Windsor license [Apache 2.0]).

Also when I've had more coffee, I want to take a look at the Castle Windsor project (by first reading and groking Introducing Castle - Part I and Introducing Castle - Part II)

(via Christopher Steen - Link Listing - May 19, 2007)

No comments: