Before I start I just want to let possible respondents know that I do know about the MVC pattern and I am trying hard to learn it and have a basic framework setup for these things as far as disassociating my data access code from my viewer code and my viewer code from the controlling code. My question has to do with mediating events between different controls.
I have read a little bit about the mediator pattern, But I am wondering if a double observer will be better for me in my situation. I have several viewer controls that I have hosted in an MDI form. I also have a selection control that changes the database location the user wants to view. When the user changes the control information I want the viewers to be notified and change their displayed information.
Each of the Viewers is a Singleton form.
I was thinking about doing it this way:
Selection Control MDI Form Viewers
Notifier Observer
Notifier Observer
Does that make sense? Is it good coding practice?
Thanks
Eric
--
--Eric Cathell, MCSA
I have read a little bit about the mediator pattern, But I am wondering if a double observer will be better for me in my situation. I have several viewer controls that I have hosted in an MDI form. I also have a selection control that changes the database location the user wants to view. When the user changes the control information I want the viewers to be notified and change their displayed information.
Each of the Viewers is a Singleton form.
I was thinking about doing it this way:
Selection Control MDI Form Viewers
Notifier Observer
Notifier Observer
Does that make sense? Is it good coding practice?
Thanks
Eric
--
--Eric Cathell, MCSA