# HG changeset patch # User sl # Date 1407871655 -7200 # Node ID 1a85ec2558823d82994d13fefad6f8291c5460e3 # Parent 7acec5059fa6529a83d09cb3b83406bb6492490f Adding server method to set all texts at once. diff -r 7acec5059fa6 -r 1a85ec255882 Client/MainForm.cs --- a/Client/MainForm.cs Tue Aug 12 20:55:50 2014 +0200 +++ b/Client/MainForm.cs Tue Aug 12 21:27:35 2014 +0200 @@ -25,8 +25,9 @@ private void buttonSetText_Click(object sender, EventArgs e) { - iClient.SetText(0,"Top"); - iClient.SetText(1, "Bottom"); + //iClient.SetText(0,"Top"); + //iClient.SetText(1, "Bottom"); + iClient.SetTexts(new string[] { "Top", "Bottom" }); } private void MainForm_Load(object sender, EventArgs e) diff -r 7acec5059fa6 -r 1a85ec255882 Server/Servers.cs --- a/Server/Servers.cs Tue Aug 12 20:55:50 2014 +0200 +++ b/Server/Servers.cs Tue Aug 12 21:27:35 2014 +0200 @@ -1,5 +1,6 @@ using System; using System.Windows.Forms; +using System.Collections; namespace SharpDisplayManager { @@ -10,16 +11,34 @@ class DisplayServer : IDisplayService { //From IDisplayService + public void SetTexts(System.Collections.Generic.IList aTexts) + { + //Only support two lines for now + for (int i=0; i aTexts); } }