Topic: Data from a hierarchy root
Good afternoon. We admit, there is at me a tree, its peaks - objects of classes NodeClass1, NodeClass2... And RootNodeClass. That is, for example, class RootNodeClass can create at itself children of type 1 and 2, in turn NodeClass1 can have children of type 1, 3, 4, well and so on in the most different combinations. Also we admit, one of classes, NodeClassX, needs the data which are in root peak, but to its "ancestors" this data are not necessary. How it is correct them there to transfer? Whether it is necessary to drag this data through a chain of designers? Then it turns out that the majority of classes will drag as though superfluous parameter in the designer. Update: in each peak there is property Parent, however it is filled after construction whereas the data from a root is required already in the designer of class NodeClassX. Perhaps, to make so that designers of all types of peaks is mandatory demanded the link to the ancestor?