diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-09-16 17:48:16 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-09-16 17:48:16 +0300 |
| commit | 161fe6f6d2b29ba3deb641cdc049ad0d8f58004e (patch) | |
| tree | 20318bb7ea4a243b8c2e9757e4635e8d5f5cb728 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MachineConnectionViewVM.cs | |
| parent | 30fcfa4100a9d00e887c6e17e32e427b05296ce7 (diff) | |
| parent | b674a2e7751daa80c0d74207968bf8e3d18d7faf (diff) | |
| download | Tango-161fe6f6d2b29ba3deb641cdc049ad0d8f58004e.tar.gz Tango-161fe6f6d2b29ba3deb641cdc049ad0d8f58004e.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
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.cs | 22 |
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; + } + } + } } |
