Scenario
- So I've taken an example of a distributed application in WCF that implements the Observer pattern.
- Ihave put the server-side into a windows service and added some classes to do some calculations, which I intend to pass the results back to the client.
The solution is made up of 3 projects.
- Server-Side Windows Service - Processes all the data/Performs calculations.
- Common Objects Class Library.
- Client-Side Windows Forms Application.
They connect and exchange data using a WCF Service that implements the Observer pattern to allow for two-way data exchange.
On The Server-Side:
I've got 3 classes:
- Class one calculates X.
- Class two calculates Y.
- Class three calculates Z.
The data from these 3 calculations is then published via the WCF Service to the Client-Side.
On The Client-Side:
Here's the TRICKY part………..
I want each set of data from each of these 3 classes to be displayed on a GridControl on a DIFFERENT Form.
So it will be as follows:
- Class X data will be published to the MainForm.
- Class Y data will be published to the YForm.
- Class Z data will be published to the Zform.
The Client application, when first run, will show only the MainForm, but it will contain a menu bar to open the Yform and Zform.
Thoughts:
- What do you think the best way to do this is?
- Do I publish all the data to one central class and then invoke the dictionaries bound to the grid controls on each different form to update the data?
- Or is there another way?
Appreciate the help.