aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs
diff options
context:
space:
mode:
authorAvi Levkovich <avi@twine-s.com>2019-01-16 13:45:38 +0200
committerAvi Levkovich <avi@twine-s.com>2019-01-16 13:45:38 +0200
commit994456523c7adf2f77dd7f74c639262b59d56ec4 (patch)
treee238062693ee5e877a86a777cc279498cb31ab0b /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs
parent09e4d329538f348c759534f282f2a6ed3bb42420 (diff)
parent1ee11bc9771c807c4d0ecb4d73e4bc33b307ae1e (diff)
downloadTango-994456523c7adf2f77dd7f74c639262b59d56ec4.tar.gz
Tango-994456523c7adf2f77dd7f74c639262b59d56ec4.zip
Merge branch 'master' of https://twinetfs.visualstudio.com/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs26
1 files changed, 16 insertions, 10 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs
index 1612eb36c..6146d8f45 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs
@@ -89,18 +89,22 @@ namespace Tango.MachineStudio.UI.StudioApplication
get { return _connectedMachine; }
private set
{
- _connectedMachine = value;
- RaisePropertyChangedAuto();
- RaisePropertyChanged(nameof(IsMachineConnected));
- RaisePropertyChanged(nameof(IsMachineConnectedViaTCP));
-
- if (_connectedMachine != null)
+ if (_connectedMachine != value)
{
- _connectedMachine.StateChanged -= ConnectedMachine_StateChanged;
- _connectedMachine.StateChanged += ConnectedMachine_StateChanged;
- }
+ _connectedMachine = value;
+ RaisePropertyChangedAuto();
+ RaisePropertyChanged(nameof(IsMachineConnected));
+ RaisePropertyChanged(nameof(IsMachineConnectedViaTCP));
- ConnectedMachineChanged?.Invoke(this, _connectedMachine);
+ if (_connectedMachine != null)
+ {
+ _connectedMachine.StateChanged -= ConnectedMachine_StateChanged;
+ _connectedMachine.StateChanged += ConnectedMachine_StateChanged;
+ }
+
+
+ ConnectedMachineChanged?.Invoke(this, _connectedMachine);
+ }
}
}
@@ -366,6 +370,8 @@ namespace Tango.MachineStudio.UI.StudioApplication
ConnectedMachine = connectedMachine;
ConnectedMachine.SetMachine(Machine);
+ var settings = SettingsManager.Default.GetOrCreate<MachineStudioSettings>();
+ ConnectedMachine.JobUploadStrategy = settings.JobUploadStrategy;
}
else
{