Server/Servers.cs
changeset 18 7acec5059fa6
parent 17 19c1aaf900dc
child 19 1a85ec255882
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/Server/Servers.cs	Tue Aug 12 20:55:50 2014 +0200
     1.3 @@ -0,0 +1,27 @@
     1.4 +using System;
     1.5 +using System.Windows.Forms;
     1.6 +
     1.7 +namespace SharpDisplayManager
     1.8 +{
     1.9 +    /// <summary>
    1.10 +    /// Implement our display service.
    1.11 +    /// This class is instantiated anew whenever a client send a request.
    1.12 +    /// </summary>
    1.13 +    class DisplayServer : IDisplayService
    1.14 +    {
    1.15 +        //From IDisplayService
    1.16 +        public void SetText(int aLineIndex, string aText)
    1.17 +        {
    1.18 +            if (aLineIndex == 0)
    1.19 +            {
    1.20 +                Program.iMainForm.marqueeLabelTop.Text = aText;
    1.21 +            }
    1.22 +            else if (aLineIndex == 1)
    1.23 +            {
    1.24 +                Program.iMainForm.marqueeLabelBottom.Text = aText;
    1.25 +            }
    1.26 +        }
    1.27 +
    1.28 +    }
    1.29 +
    1.30 +}