Servers.cs
author sl
Tue, 12 Aug 2014 20:37:57 +0200
changeset 17 19c1aaf900dc
permissions -rw-r--r--
Adding WCF server implementation.
     1 using System;
     2 using System.Windows.Forms;
     3 
     4 namespace SharpDisplayManager
     5 {
     6     /// <summary>
     7     /// Implement our display service.
     8     /// This class is instantiated anew whenever a client send a request.
     9     /// </summary>
    10     class DisplayServer : IDisplayService
    11     {
    12         //From IDisplayService
    13         public void SetText(int aLineIndex, string aText)
    14         {
    15             if (aLineIndex == 0)
    16             {
    17                 Program.iMainForm.marqueeLabelTop.Text = aText;
    18             }
    19             else if (aLineIndex == 1)
    20             {
    21                 Program.iMainForm.marqueeLabelBottom.Text = aText;
    22             }
    23         }
    24 
    25     }
    26 
    27 }