title: C# WCF - Publisher/Subscriber Pattern: Displaying Data On Multiple Forms
body: <h3>Scenario</h3>
  <ul>
  <li>So I've taken an example of a
  distributed application in WCF that
  implements the Observer pattern.</li>
  <li>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.</li>
  </ul>
  <p>The solution is made up of 3 projects.</p>
  <ul>
  <li>Server-Side Windows Service - Processes all the data/Performs calculations.</li>
  <li>Common Objects Class Library.</li>
  <li>Client-Side Windows Forms Application.</li>
  </ul>
  <p>They connect and exchange data using a WCF Service that implements the Observer pattern to allow for two-way data exchange.</p>
  <h3>On The Server-Side:</h3>
  <p>I've got 3 classes:</p>
  <ol>
  <li>Class one calculates X.</li>
  <li>Class two calculates Y.</li>
  <li>Class three calculates Z.</li>
  </ol>
  <p>The data from these 3 calculations is then published via the WCF Service to the Client-Side.</p>
  <h3>On The Client-Side:</h3>
  <p>Here's the TRICKY part………..</p>
  <p>I want each set of data from each of these 3 classes to be displayed on a GridControl on a DIFFERENT Form.</p>
  <p>So it will be as follows:</p>
  <ol>
  <li>Class X data will be published to
  the MainForm.</li>
  <li>Class Y data will be
  published to the YForm.</li>
  <li>Class Z data
  will be published to the Zform.</li>
  </ol>
  <p>The Client application, when first run, will show only the MainForm, but it will contain a menu bar to open the Yform and Zform.</p>
  <h3>Thoughts:</h3>
  <ul>
  <li>What do you think the best way to do this is?</li>
  <li>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?</li>
  <li>Or is there another way?</li>
  </ul>
  <p>Appreciate the help.</p>