diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-09 18:51:16 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-07-09 18:51:16 +0300 |
| commit | eaa94f1788cb25f437c7d4ab7dcc10f479106719 (patch) | |
| tree | ea6c8b626fbc9ed2af2493b0de31e81c37a2db37 /Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication | |
| parent | 0a4c7077f5bf8697ee84bcf9c9662cdeb121f2f6 (diff) | |
| download | Tango-eaa94f1788cb25f437c7d4ab7dcc10f479106719.tar.gz Tango-eaa94f1788cb25f437c7d4ab7dcc10f479106719.zip | |
Worked on PPC job progress view !
Implemented TouchRingProgress !
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs index f1ee1ac87..65ee12124 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs @@ -16,6 +16,7 @@ using System.IO; using Tango.Core.Helpers; using Tango.PPC.Common.Modules; using System.Windows.Threading; +using Tango.Transport.Adapters; namespace Tango.PPC.UI.PPCApplication { @@ -48,7 +49,6 @@ namespace Tango.PPC.UI.PPCApplication /// </summary> public bool IsShuttingDown { get; private set; } - private IMachineOperator _connectedMachine; /// <summary> /// Gets or sets the currently connected machine if any. @@ -167,6 +167,8 @@ namespace Tango.PPC.UI.PPCApplication } ModulesInitialized?.Invoke(this, new EventArgs()); + + ConnectToMachine(); }; } }; @@ -187,5 +189,12 @@ namespace Tango.PPC.UI.PPCApplication vm.OnApplicationShuttingDown(); } } + + private async void ConnectToMachine() + { + var machine = new MachineOperator(new UsbTransportAdapter("COM3", UsbSerialBaudRates.BR_9600)); + await machine.Connect(); + ConnectedMachine = machine; + } } } |
