Question about subclassed panel and BO binding...


Author
Message
Robin J Giltner
Robin J Giltner
StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)
Group: Forum Members
Posts: 105, Visits: 650
I have a small question regarding a panel I have successfully managed to subclass (ok well almost successfully).  After taking the code from the form designer for the panel, and making sticking it into a class, and altering the code to simply get the form to show up properly, I've run into a problem.  The panel has controls bound to a BO that is located on the form, how can I tell the panel class to use these BusinessObjects?

So far, I've changed my Initialization method on the panel class to accept a BusinessLayer object, and changed my New constructor to accept a generic BusinessLayer.  After that, I had to go back into the form's designer and add the parameter to where the panel class gets instantiated to pass it the BO from the Form.

After reviewing all of the steps I took, I figured there is a better way of doing this and was hoping you could point me into the right direction.

Thanks.

Robin Giltner

Replies
Robin J Giltner
Robin J Giltner
StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)
Group: Forum Members
Posts: 105, Visits: 650
Awesome, Thanks Trent.  I'll give that a try.  One quick question, I can translate multiple businessobject from the form to the UserControl right?

Thanks,

Robin Giltner

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
As many as you would like...go until you run out of memory BigGrin
Robin J Giltner
Robin J Giltner
StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)
Group: Forum Members
Posts: 105, Visits: 650
YES!  I can add as many BusinessObjects to my UserForm as it takes to run out of memory then blame you guys for the problem! 


THE DAY IS MINE! BigGrin

Thanks again.

Robin

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
hehe....yup, you pretty much nailed it Smile
Robin J Giltner
Robin J Giltner
StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)StrataFrame User (179 reputation)
Group: Forum Members
Posts: 105, Visits: 650
Another small question, this will work for a PanelManagerPage as well?

Thanks,

Robin

Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
No.  You would have to drop a user control on a PanelManagerPage.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Robin J Giltner - 19 Years Ago
Trent L. Taylor - 19 Years Ago
Robin J Giltner - 19 Years Ago
Trent L. Taylor - 19 Years Ago
Robin J Giltner - 19 Years Ago
                         hehe....yup, you pretty much nailed it :)
Trent L. Taylor - 19 Years Ago
                             Another small question, this will work for a PanelManagerPage as well?...
Robin J Giltner - 19 Years Ago
                                 No. You would have to drop a user control on a PanelManagerPage.
Trent L. Taylor - 19 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search