# HG changeset patch # User sl # Date 1408000287 -7200 # Node ID cac466b1b6e68f066a26f7731cd866bc9c8b0e0a # Parent 274a6b27c3f9331f124eab6a6f0f00b892e94ffb Adding interface library. diff -r 274a6b27c3f9 -r cac466b1b6e6 Client/Client.cs --- a/Client/Client.cs Thu Aug 14 00:23:18 2014 +0200 +++ b/Client/Client.cs Thu Aug 14 09:11:27 2014 +0200 @@ -4,14 +4,14 @@ using System.Text; using System.Threading.Tasks; using System.Windows.Forms; -using SharpDisplayManager; +using SharpDisplayInterface; using System.ServiceModel; using System.ServiceModel.Channels; namespace SharpDisplayClient { - public partial class ClientInput : SharpDisplayManager.IDisplayServiceCallback + public partial class ClientInput : IDisplayServiceCallback { public void OnConnected() { diff -r 274a6b27c3f9 -r cac466b1b6e6 Client/SharpDisplayClient.csproj --- a/Client/SharpDisplayClient.csproj Thu Aug 14 00:23:18 2014 +0200 +++ b/Client/SharpDisplayClient.csproj Thu Aug 14 09:11:27 2014 +0200 @@ -80,9 +80,9 @@ - - {1da8c1b3-18c5-4e74-be4e-0b0e15fbaf49} - SharpDisplayManager + + {88eee0dc-abbc-4738-bad6-7e08cf7f50f9} + SharpDisplayInterface diff -r 274a6b27c3f9 -r cac466b1b6e6 Server/MainForm.cs --- a/Server/MainForm.cs Thu Aug 14 00:23:18 2014 +0200 +++ b/Server/MainForm.cs Thu Aug 14 09:11:27 2014 +0200 @@ -11,6 +11,7 @@ using CodeProject.Dialog; using System.Drawing.Imaging; using System.ServiceModel; +using SharpDisplayInterface; namespace SharpDisplayManager @@ -190,7 +191,7 @@ { CheckForRequestResults(); - //Draw to bitmap + //Draw to bitmap if (iCreateBitmap) { iBmp = new System.Drawing.Bitmap(tableLayoutPanel.Width, tableLayoutPanel.Height, PixelFormat.Format32bppArgb); @@ -213,7 +214,7 @@ screenX = ScreenX; screenY = ScreenY; } - + //Send it to our display for (int i = 0; i < iBmp.Width; i++) { diff -r 274a6b27c3f9 -r cac466b1b6e6 Server/Servers.cs --- a/Server/Servers.cs Thu Aug 14 00:23:18 2014 +0200 +++ b/Server/Servers.cs Thu Aug 14 09:11:27 2014 +0200 @@ -4,6 +4,7 @@ using System.ServiceModel; using System.Collections.Generic; using System.Linq; +using SharpDisplayInterface; namespace SharpDisplayManager { @@ -30,7 +31,7 @@ } } } - + // public void SetText(int aLineIndex, string aText) { @@ -56,7 +57,7 @@ } //Register our client Program.iMainForm.iClients.Add(aClientName, callback); - + //For some reason MP still hangs on that one //callback.OnConnected(); } diff -r 274a6b27c3f9 -r cac466b1b6e6 Server/Services.cs --- a/Server/Services.cs Thu Aug 14 00:23:18 2014 +0200 +++ b/Server/Services.cs Thu Aug 14 09:11:27 2014 +0200 @@ -5,6 +5,7 @@ namespace SharpDisplayManager { + /* [ServiceContract(CallbackContract = typeof(IDisplayServiceCallback))] public interface IDisplayService { @@ -27,4 +28,5 @@ [OperationContract(IsOneWay = true)] void OnServerClosing(); } + */ } diff -r 274a6b27c3f9 -r cac466b1b6e6 Server/SharpDisplayManager.csproj --- a/Server/SharpDisplayManager.csproj Thu Aug 14 00:23:18 2014 +0200 +++ b/Server/SharpDisplayManager.csproj Thu Aug 14 09:11:27 2014 +0200 @@ -89,6 +89,12 @@ + + + {88eee0dc-abbc-4738-bad6-7e08cf7f50f9} + SharpDisplayInterface + +