Full sample library with winforms UI

hramos360 posted on Tuesday, July 12, 2011

Is there a full winforms UI sample that contains all the CSLA stereotypes or at least a library sample which

contains the stereotypes? If not, then i'm looking for a fully implemented (all CRUD) sample of a parent business base with editable children. The samples rocky has are kind of all over the place and it makes it difficult to follow the e-books.

RockfordLhotka replied on Tuesday, July 12, 2011

If you have the ebook series, follow the samples from the Data Access ebook. Those samples show every stereotype.

The only thing you need to do differently for Windows Forms is to have the collections subclass the "BindingList" base classes - like BusinessBindingListBase instead of BusinessListBase.

That should get you all the business class code you need for any type of app.

For Windows Forms UI example code, look at the 3.7 ProjectTracker sample. That should have a working Windows Forms UI. The exact same UI techniques used in that code (and described in the Using CSLA .NET 3.0 ebook) still apply today. Windows Forms hasn't changed in any meaningful way since 2005.