| | | StrataFrame Beginner
       
Group: Forum Members Last Login: 04/13/2007 5:21:30 PM Posts: 18, Visits: 193 |
| | I'm not sure how to pass a parameter to a BO when it gets initialized once it gets dropped on a form short of modifying the code in the form.designer.cs. Is it possible without modifying this code? Thanks, Randy |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Today @ 11:24:42 AM Posts: 2,686, Visits: 1,889 |
| No, all components are designed to have parameterless constructors. So, if you add a new constructor that accepts parameters to the business object, you'll either have to modify the code like you've been doing or declare the instance of the business object on your own rather than dropping it on the form. If you define it the same way as it's defined within the InitializeComponent region, then you should be able to bind to it the same way, but no promises...
www.bungie.net |
| |
|
|