1.1 --- a/Server/Servers.cs Tue Aug 12 20:55:50 2014 +0200
1.2 +++ b/Server/Servers.cs Tue Aug 12 21:27:35 2014 +0200
1.3 @@ -1,5 +1,6 @@
1.4 using System;
1.5 using System.Windows.Forms;
1.6 +using System.Collections;
1.7
1.8 namespace SharpDisplayManager
1.9 {
1.10 @@ -10,16 +11,34 @@
1.11 class DisplayServer : IDisplayService
1.12 {
1.13 //From IDisplayService
1.14 + public void SetTexts(System.Collections.Generic.IList<string> aTexts)
1.15 + {
1.16 + //Only support two lines for now
1.17 + for (int i=0; i<aTexts.Count; i++)
1.18 + {
1.19 + if (i == 0)
1.20 + {
1.21 + Program.iMainForm.marqueeLabelTop.Text = aTexts[i];
1.22 + }
1.23 + else if (i == 1)
1.24 + {
1.25 + Program.iMainForm.marqueeLabelBottom.Text = aTexts[i];
1.26 + }
1.27 + }
1.28 + }
1.29 +
1.30 + //
1.31 public void SetText(int aLineIndex, string aText)
1.32 {
1.33 - if (aLineIndex == 0)
1.34 - {
1.35 - Program.iMainForm.marqueeLabelTop.Text = aText;
1.36 - }
1.37 - else if (aLineIndex == 1)
1.38 - {
1.39 - Program.iMainForm.marqueeLabelBottom.Text = aText;
1.40 - }
1.41 + //Only support two lines for now
1.42 + if (aLineIndex == 0)
1.43 + {
1.44 + Program.iMainForm.marqueeLabelTop.Text = aText;
1.45 + }
1.46 + else if (aLineIndex == 1)
1.47 + {
1.48 + Program.iMainForm.marqueeLabelBottom.Text = aText;
1.49 + }
1.50 }
1.51
1.52 }