aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MachineConnectionViewVM.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2019-05-19 12:37:00 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2019-05-19 12:37:00 +0300
commit2433051636406054c69b6de42806aab50e076e01 (patch)
tree12dd78e2e5f82f4355035bc64c16a08e3be7434b /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MachineConnectionViewVM.cs
parent1d2d515c91a78a8a3e373e05ae925ba6af1f32fd (diff)
downloadTango-2433051636406054c69b6de42806aab50e076e01.tar.gz
Tango-2433051636406054c69b6de42806aab50e076e01.zip
2. Update PPC DB Schema and Liquid Types. ***
3. Test preferred index on PPC. *** 3.1. Add Has_Pigment to Liquid Type. *** 4. Add "Use Preferred Index to Machine Studio. *** 4. Enable KeepAlive by default. *** 4. Disable upload HW for TCP by default. ***
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MachineConnectionViewVM.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MachineConnectionViewVM.cs22
1 files changed, 21 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MachineConnectionViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MachineConnectionViewVM.cs
index ce49d805e..d1f3cc69e 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MachineConnectionViewVM.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MachineConnectionViewVM.cs
@@ -36,7 +36,7 @@ namespace Tango.MachineStudio.UI.ViewModels
public IExternalBridgeClient SelectedMachine
{
get { return _selectedMachine; }
- set { _selectedMachine = value; RaisePropertyChangedAuto(); InvalidateRelayCommands(); }
+ set { _selectedMachine = value; RaisePropertyChangedAuto(); RaisePropertyChanged(nameof(RequiresAuthentication)); InvalidateRelayCommands(); }
}
/// <summary>
@@ -57,6 +57,7 @@ namespace Tango.MachineStudio.UI.ViewModels
EnableDiagnostics = true;
UploadHardwareConfiguration = true;
+ EnableKeepAlive = true;
ConnectCommand = new RelayCommand(Connect, (x) => SelectedMachine != null);
}
@@ -130,6 +131,17 @@ namespace Tango.MachineStudio.UI.ViewModels
set { _uploadHardwareConfiguration = value; RaisePropertyChangedAuto(); }
}
+ private bool _enableApplicationLogs;
+ /// <summary>
+ /// Gets or sets a value indicating whether to enable application logs.
+ /// </summary>
+ public bool EnableApplicationLogs
+ {
+ get { return _enableApplicationLogs; }
+ set { _enableApplicationLogs = value; RaisePropertyChangedAuto(); }
+ }
+
+
private bool _enableKeepAlive;
/// <summary>
/// Gets or sets a value indicating whether to use the keep alive mechanism.
@@ -140,5 +152,13 @@ namespace Tango.MachineStudio.UI.ViewModels
set { _enableKeepAlive = value; RaisePropertyChangedAuto(); }
}
+ public bool RequiresAuthentication
+ {
+ get
+ {
+ return SelectedMachine != null && SelectedMachine is IExternalBridgeSecureClient;
+ }
+ }
+
}
}