Providing a paramter to the constuctor of a Business Object


Author
Message
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
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...
Randy Smith
Randy Smith
StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)StrataFrame Beginner (18 reputation)
Group: Forum Members
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

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search