R
Rene
Hello,
I am looking for 'a generalized way to synchronize the forms'.My application
has many forms being opened an any given time, and each can be opened or
closed at will during a user session. Finally, they need to be synchronized
with each
other in the data they display.
To exemplify, for each of the following, a form exists listing (in a
Listview control) relevant data:
- Customer list
- Order list, for a customer
- Order detail, for an order
- Aircraft list
- Flight list, for an aircraft
- Passenger list, on a flight
Clicking on a customer:
- lists orders, for the selected customer
- lists order detail, for customer's first order if one exists
- highlights passenger list entry, if customer is booked on flight currently
displayed
...., I'm sure you get the idea, many forms, displaying data based on a 'key'
from another form.
The usual way to achieve synchronization is by sinking to event handlers in
the forms that need to react to events from other forms. As I understand
it, this entails defining objects, and writing event handlers in the forms
that do the 'listening'. This process gets messy when forms are opened and
closed at will, as a form might wind up listening to nothing!
I'm looking for a generalized - and hopefully simpler way; maybe with a
single 'Watchdog' form to handle all the synchronization.
I'll much appreciate comments, ideas, links, articles, suggested reading,
etc...
Thanx!
René
Montreal
I am looking for 'a generalized way to synchronize the forms'.My application
has many forms being opened an any given time, and each can be opened or
closed at will during a user session. Finally, they need to be synchronized
with each
other in the data they display.
To exemplify, for each of the following, a form exists listing (in a
Listview control) relevant data:
- Customer list
- Order list, for a customer
- Order detail, for an order
- Aircraft list
- Flight list, for an aircraft
- Passenger list, on a flight
Clicking on a customer:
- lists orders, for the selected customer
- lists order detail, for customer's first order if one exists
- highlights passenger list entry, if customer is booked on flight currently
displayed
...., I'm sure you get the idea, many forms, displaying data based on a 'key'
from another form.
The usual way to achieve synchronization is by sinking to event handlers in
the forms that need to react to events from other forms. As I understand
it, this entails defining objects, and writing event handlers in the forms
that do the 'listening'. This process gets messy when forms are opened and
closed at will, as a form might wind up listening to nothing!
I'm looking for a generalized - and hopefully simpler way; maybe with a
single 'Watchdog' form to handle all the synchronization.
I'll much appreciate comments, ideas, links, articles, suggested reading,
etc...
Thanx!
René
Montreal