Removing older solution file.
2 using System.Collections.Generic;
3 using System.ComponentModel;
8 using System.Threading.Tasks;
9 using System.Windows.Forms;
10 using System.ServiceModel;
11 using System.ServiceModel.Channels;
14 namespace SharpDisplayClient
16 public partial class MainForm : Form
18 ClientOutput iClientOutput;
19 InstanceContext iInstanceContext;
20 ClientInput iClientInput;
24 InitializeComponent();
27 private void buttonSetText_Click(object sender, EventArgs e)
29 //iClient.SetText(0,"Top");
30 //iClient.SetText(1, "Bottom");
31 iClientOutput.SetTexts(new string[] { "Top", "Bottom" });
34 private void MainForm_Load(object sender, EventArgs e)
36 iClientInput = new ClientInput();
37 iInstanceContext = new InstanceContext(iClientInput);
38 iClientOutput = new ClientOutput(iInstanceContext);
40 iClientOutput.Connect("TestClient");
44 public void CloseConnection()
46 //If we close the instance context after the client output it hangs
47 iInstanceContext.Close();
48 iInstanceContext = null;
49 iClientOutput.Close();