aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Utilities/Tango.MachineEM.UI
diff options
context:
space:
mode:
authorRoy <roy.mail.net@gmail.com>2018-01-02 22:26:11 +0200
committerRoy <roy.mail.net@gmail.com>2018-01-02 22:26:11 +0200
commit0ab7e3d35c01eaaa6ebf03225971909bea365597 (patch)
tree03394eaeb59e077821da0859e1e4f184af209adb /Software/Visual_Studio/Utilities/Tango.MachineEM.UI
parenta894d541baa4f89f1b0f31c88b773ea4b36db323 (diff)
downloadTango-0ab7e3d35c01eaaa6ebf03225971909bea365597.tar.gz
Tango-0ab7e3d35c01eaaa6ebf03225971909bea365597.zip
Refactored Transporter Adapters collection to single adapter !
Diffstat (limited to 'Software/Visual_Studio/Utilities/Tango.MachineEM.UI')
-rw-r--r--Software/Visual_Studio/Utilities/Tango.MachineEM.UI/ViewModels/MainViewVM.cs4
1 files changed, 2 insertions, 2 deletions
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
/// <param name="e">The <see cref="ClientConnectedEventArgs"/> instance containing the event data.</param>
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();