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
This will be more difficult using a Panel...the easiest thing to do is to create an SF User Control class, the place your panel on that user control. All SF user controls have a BOTranslations property that allows business objects to be translated from a form to the dropped on user control.
For example, you would create your user control and drop any BOs that you plan to use on this control. You can bind to these BOs just as though you were on a form. Once you get the user control where you like it, drop it on a form (or another control, etc.). Once the control is dropped on the form, go to the BOTranslations property of the control and use the type editor (builder) that comes up to translate the BOs on your form to the BOs within the user control. So at runtime, the BO instances on the form will automatically translated onto the user control without you having to write a single line of code.
THE DAY IS MINE!
Thanks again.
Robin
Thanks,