I have a few classes that extend UserControl:
MyNodePanel: some "fancy" panel
MyBaseDataPanel: a base panel with some generic functionality (has a
collection of MyNodePanels)
Both of those are in a generic library.
I have another UserControl:
OneSpecificDataPanel: extends MyBaseDataPanel
(there will be many of these specific data panels, all contain several
MyNodePanels (among other things)).
So far, I've got all the "designer" variables showing up correctly,
however there's one part I haven't figured out yet.
When I add a few 'MyNodePanel's to 'OneSpecificDataPanel,' I'd like for
it to automatically add a line:
"this.NodePanels.Add(this.newNodePanel);" similar to when you add any
controls to a gui, there's this line:
"this.Controls.Add(this.newControlYouJustAdded );" Except I'd like to
have a collection of the MyNodePanels contained on the specific panels
so I can manipulate them through methods in the MyBaseDataPanel.
Anyone know how to do this? Am I just missing something simple?
Thanks,
PKSII