From 0ab7e3d35c01eaaa6ebf03225971909bea365597 Mon Sep 17 00:00:00 2001 From: Roy Date: Tue, 2 Jan 2018 22:26:11 +0200 Subject: Refactored Transporter Adapters collection to single adapter ! --- .../Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels') diff --git a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs index 24a0f6119..ad5c449c8 100644 --- a/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs @@ -191,7 +191,7 @@ namespace Tango.MachineEM.UI.ViewModels /// The instance containing the event data. private void TcpServer_ClientConnected(object sender, ClientConnectedEventArgs e) { - Emulator.Transporter.Adapters.Add(new TcpTransportAdapter(e.Socket)); + Emulator.Transporter.Adapter = new TcpTransportAdapter(e.Socket); } #endregion @@ -211,7 +211,7 @@ namespace Tango.MachineEM.UI.ViewModels } else { - Emulator.Transporter.Adapters.Add(new UsbTransportAdapter(SelectedPort)); + Emulator.Transporter.Adapter = new UsbTransportAdapter(SelectedPort); } await Emulator.Start(); InvalidateRelayCommands(); -- cgit v1.3.1