H
HS1
Hello all
I have 3 classes with dependency relationship as following:
ClassA depends on ClassB. e.g. when I click a button in a PanelA (an object
presenting for ClassA), a new PanelB (presenting for ClassB) will be shown.
ClassB depends on ClassC. e.g. when I click a button in the Panel B, a new
PanelC will be shown (presenting for ClassC)
ClassA --> ClassB --> ClassC
What I want is that after I click a button OK in PanelC, the content of this
panel will be updated(or presented) in PanelA (the PanelC will be closed).
Could you please help me to choose a suitable class design. Do I need to
have a variable of ClassA in ClassC to update the value in ClassA. What
about ClassB.
Thank you...
S.H1
I have 3 classes with dependency relationship as following:
ClassA depends on ClassB. e.g. when I click a button in a PanelA (an object
presenting for ClassA), a new PanelB (presenting for ClassB) will be shown.
ClassB depends on ClassC. e.g. when I click a button in the Panel B, a new
PanelC will be shown (presenting for ClassC)
ClassA --> ClassB --> ClassC
What I want is that after I click a button OK in PanelC, the content of this
panel will be updated(or presented) in PanelA (the PanelC will be closed).
Could you please help me to choose a suitable class design. Do I need to
have a variable of ClassA in ClassC to update the value in ClassA. What
about ClassB.
Thank you...
S.H1