author | sl |
Tue, 12 Aug 2014 20:55:50 +0200 | |
changeset 18 | 7acec5059fa6 |
parent 17 | Servers.cs@19c1aaf900dc |
child 19 | 1a85ec255882 |
permissions | -rw-r--r-- |
1 using System;
2 using System.Windows.Forms;
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 }
25 }
27 }