diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-01-22 17:57:57 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-01-22 17:57:57 +0200 |
| commit | bb9f7604e91b3803c23c2212a4854512de600717 (patch) | |
| tree | 0327a270903e9cab582c9cdfd2ac31bef9077b61 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoginViewVM.cs | |
| parent | 0b0df0301bfa63e33034840651787a959e55ca38 (diff) | |
| parent | de5315c050369dd7d2cc7cdc2b82e9cde0d6da24 (diff) | |
| download | Tango-bb9f7604e91b3803c23c2212a4854512de600717.tar.gz Tango-bb9f7604e91b3803c23c2212a4854512de600717.zip | |
Merge branch 'master' of https://twinetfs.visualstudio.com/Tango/_git/Tango
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoginViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoginViewVM.cs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoginViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoginViewVM.cs index 4ebf3d96d..c8e25e2d4 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoginViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/LoginViewVM.cs @@ -87,6 +87,17 @@ namespace Tango.MachineStudio.UI.ViewModels set { _rememberMe = value; RaisePropertyChangedAuto(); } } + private bool _enableSlotSelection; + /// <summary> + /// Gets or sets a value indicating whether to enable the deployment slot selection. + /// </summary> + public bool EnableSlotSelection + { + get { return _enableSlotSelection; } + set { _enableSlotSelection = value; RaisePropertyChangedAuto(); } + } + + /// <summary> /// Gets or sets the login command. /// </summary> @@ -100,6 +111,8 @@ namespace Tango.MachineStudio.UI.ViewModels /// <param name="notificationProvider">The notification provider.</param> public LoginViewVM(IAuthenticationProvider authenticationProvider, INavigationManager navigationManager, INotificationProvider notificationProvider, IEventLogger eventLogger) { + EnableSlotSelection = true; + _settings = SettingsManager.Default.GetOrCreate<MachineStudioSettings>(); _notificationProvider = notificationProvider; @@ -137,6 +150,8 @@ namespace Tango.MachineStudio.UI.ViewModels await Task.Factory.StartNew(() => { + + _settings.DeploymentSlot = DeploymentSlot; _authenticationProvider.Login(Email, Password); @@ -151,6 +166,8 @@ namespace Tango.MachineStudio.UI.ViewModels _settings.Save(); _eventLogger.Log("User logged in."); + + EnableSlotSelection = false; }); } catch (Exception ex) |
