U
Ueli Werner
Hi newsgroup
I have a little problem with the design of my classes.
I have 3 classes. The first class is named 'Top', the second 'Middle' and
the third is named 'Bottom'.
I also have a class called 'Parameters'.
The class 'Top' has a collection of 'Middle' and the classe 'Middle' has an
object of 'Bottom'. The class Top also has a object of Parameters. This
object 'Parameters' must be also used in the class 'Bottom' with the values
the Class 'Top' sets.
This is my code in a similar way.
Public Class Parameters
end class
Public Class Top
dim param as new Parameters
dim mymiddle as MiddleCol
end class
Public Class Middle
dim mybottom as Bottom
end class
Public Class MiddleCol
'Collection of Middle
end class
Public Class Bottom
'Use ParametersClass of Top
end class
I know that the design is not very good, but that's the way my customer want
it. Maybe I can change the design if I have a better idea.
My question is now how to transfer the object of Paramters to the Class
Bottom without transfering it through the Class middle, because the
MiddleColletion can have more than 300 entries
Any ideas?
Thanks for every help.
Regards
Ueli Werner
I have a little problem with the design of my classes.
I have 3 classes. The first class is named 'Top', the second 'Middle' and
the third is named 'Bottom'.
I also have a class called 'Parameters'.
The class 'Top' has a collection of 'Middle' and the classe 'Middle' has an
object of 'Bottom'. The class Top also has a object of Parameters. This
object 'Parameters' must be also used in the class 'Bottom' with the values
the Class 'Top' sets.
This is my code in a similar way.
Public Class Parameters
end class
Public Class Top
dim param as new Parameters
dim mymiddle as MiddleCol
end class
Public Class Middle
dim mybottom as Bottom
end class
Public Class MiddleCol
'Collection of Middle
end class
Public Class Bottom
'Use ParametersClass of Top
end class
I know that the design is not very good, but that's the way my customer want
it. Maybe I can change the design if I have a better idea.
My question is now how to transfer the object of Paramters to the Class
Bottom without transfering it through the Class middle, because the
MiddleColletion can have more than 300 entries
Any ideas?
Thanks for every help.
Regards
Ueli Werner