delegate () { solve(everything); }

Call me Ishmael.

C#: Maintaining complex state – SyncLINQ to the rescue!

Paul Stovell has created a LINQ library that can be used to simplify the maintenance of state in complex (and even not so complex) applications. It is called SyncLINQ, and consists of a few extension methods that can be used to very easily take advantage of INotifyPropertyChanged and INotifyCollectionChanged events for keeping your state in sync. It also has an Asynchronous() extension method that uses the same event processing to allow for the easiest asynchronous data retrieval I have ever seen! KUDOS Paul!

There are a few good examples on his website, and I recommend you take the time to go through them. There are also a couple of videos, but be warned: Paul is very much an Aussie so you might need to concentrate to understand what he is talking about ;-)

I haven’t had the time to try this out yet, but I am doing a CAB spike right now so I will probably try this out to see how it can handle the state management in a modular UI over the next couple of days. And from the information on his website and his demos it looks very promising.

 

Technorati Koder: ,

May 23, 2008 Posted by | Programming, Winforms | , | Leave a Comment

CAB: Introduction to CAB and SCSF

I am just starting up with using the Composite UI Application Block (CAB) and Smart Client Software Factory (SCSF) in our new internal support application. The CAB concept is a huge chunk of new stuff to get a grasp on before you can start using it right.

Luckily there are smart people like Rich Newman out there. Rich has made a series of small introduction articles to CAB and SCSF. There are 25 such articles so far, and they have a very nice progression. They are well written and come with code samples you can use to experiment on your own. I recommend these to everyone that are starting up with CAB and SCSF or considering doing so. These articles are as easy to follow as Microsoft’s own documentation is hard.

KUDOS, Rich!

Quick overview of the CAB components:

CABDiagram

May 15, 2008 Posted by | Architecture, CAB, Programming | , | Leave a Comment

   

Follow

Get every new post delivered to your Inbox.