1.1 --- a/Client/MainForm.cs Tue Sep 29 18:38:36 2015 +0200
1.2 +++ b/Client/MainForm.cs Fri Oct 30 16:45:33 2015 +0100
1.3 @@ -29,7 +29,7 @@
1.4 using System.ServiceModel;
1.5 using System.ServiceModel.Channels;
1.6 using System.Diagnostics;
1.7 -using SharpDisplay;
1.8 +using SharpLib.Display;
1.9
1.10
1.11 namespace SharpDisplayClient
1.12 @@ -39,7 +39,7 @@
1.13 public StartParams Params { get; set; }
1.14
1.15 //
1.16 - DisplayClient iClient;
1.17 + Client iClient;
1.18 //
1.19 ContentAlignment Alignment;
1.20 DataField iTextFieldTop;
1.21 @@ -55,14 +55,20 @@
1.22 iTextFieldTop = new DataField(0);
1.23 }
1.24
1.25 - /// <summary>
1.26 - ///
1.27 - /// </summary>
1.28 - /// <param name="sender"></param>
1.29 - /// <param name="e"></param>
1.30 + public void OnCloseOrder()
1.31 + {
1.32 + CloseThreadSafe();
1.33 + }
1.34 +
1.35 + /// <summary>
1.36 + ///
1.37 + /// </summary>
1.38 + /// <param name="sender"></param>
1.39 + /// <param name="e"></param>
1.40 private void MainForm_Load(object sender, EventArgs e)
1.41 {
1.42 - iClient = new DisplayClient(this);
1.43 + iClient = new Client();
1.44 + iClient.CloseOrderEvent += OnCloseOrder;
1.45 iClient.Open();
1.46
1.47 //Connect using unique name