CSLA Beginner Question

CSLA Beginner Question

Old forum URL: forums.lhotka.net/forums/t/12875.aspx


MarkOverstreet posted on Thursday, April 30, 2015

I've been tasked to write a new application in Winforms (yes, winforms) and I'm getting familiar with CSLA business objects in my business layer project and I have a UI project for the interface but I noticed that there are no components loaded on the toolbox (Visual Studio 2013) even though I have added a reference to the project and even selected choose items from the toolbox and manually selected the csla.dll.   The only items added to the toolbox when I manually point to the DLL from the toolbox dialog is the CSLA.Threading BackgroundWork component.

What am I missing here?  Shouldn't there be some other items like CSLADataSource?  I'm trying to set up a simple binding example to test with and it seems that I would need some of these controls to help work through some winform issues (at least according to the documentation).

 

Thanks

Mark

ajj3085 replied on Thursday, April 30, 2015

You'll need to right click in an empty space in your toolbox and choose Add Items, then browse to Csla.Windows.dll. 

MarkOverstreet replied on Friday, May 01, 2015

Hi Andy,

Thanks for the help, I really appreciate but had a quick question.  I used Nuget to add the CSLA dll to my project and it doesn't appear that it added a CSLA.Windows.dll so do you know where I find that?

Thanks

 

ajj3085 replied on Friday, May 01, 2015

http://www.nuget.org/packages/CSLA-WindowsForms/

Install-Package CSLA-WindowsForms

JonnyBee replied on Saturday, May 02, 2015

My preferred solution is to subclass the controls I need from Csla.Windows inside a project in my solution.

Visual Studio will automatically load controls into Toolbox that are in your solution.

I prefer this as it lets med upgrade to newer NuGet packages and also have a number of solutions that have different references and switch back and forth between these solutions.

When you install Csla.Windows into toolbox you have registered that assembly and version in Visual Studio - not just for this solution.

 

MarkOverstreet replied on Monday, May 04, 2015

Thanks, that worked.

MarkOverstreet replied on Monday, May 04, 2015

Good idea!  Thanks.

Copyright (c) Marimer LLC