F
Franck Diastein
Hi,
I'm making a little app with a treeview in a custom control name UCMenu...
I load my menu with
UCMenu _menu = new UCMenu();
so _menu is an instance of UCMenu...
My problem is that I need to update nodes in treeview inside _menu, but
I can't directly 'touch' it... So I thinked in a static classe where I
can reference my _menu just after creation, something aka:
UCMenu _menu = new UCMenu();
GUIHandler.Menu.Object = _menu;
So, when I need to update a property of _menu I can do something aka:
GUIHandler.Menu.AddNode("My node")...
So my question is, what type of variable do I need to declare in
GUIHandler class to hold Menu.Object ?
In fact I think it must have a standard way of doing this, handling
'dynamic' objects, but I don't know how...
TIA
I'm making a little app with a treeview in a custom control name UCMenu...
I load my menu with
UCMenu _menu = new UCMenu();
so _menu is an instance of UCMenu...
My problem is that I need to update nodes in treeview inside _menu, but
I can't directly 'touch' it... So I thinked in a static classe where I
can reference my _menu just after creation, something aka:
UCMenu _menu = new UCMenu();
GUIHandler.Menu.Object = _menu;
So, when I need to update a property of _menu I can do something aka:
GUIHandler.Menu.AddNode("My node")...
So my question is, what type of variable do I need to declare in
GUIHandler class to hold Menu.Object ?
In fact I think it must have a standard way of doing this, handling
'dynamic' objects, but I don't know how...
TIA