diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-27 17:34:54 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-12-27 17:34:54 +0200 |
| commit | 00de504d4d276063ec6b732cc95e476c89182df2 (patch) | |
| tree | 49bd12dc86ae6c05286b135fe6d4ed0990323144 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs | |
| parent | 50bfdf5d76ddd3796c6c54153e9af4244119a548 (diff) | |
| download | Tango-00de504d4d276063ec6b732cc95e476c89182df2.tar.gz Tango-00de504d4d276063ec6b732cc95e476c89182df2.zip | |
Worked on PPC publisher.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs | 26 |
1 files changed, 24 insertions, 2 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs index 7b8d4dbe6..6cf08a43a 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs @@ -49,6 +49,7 @@ namespace Tango.PPC.UI.ViewModels WiFiSelectionView, WiFiTestView, TimeZoneView, + EnvironmentView, SetupWelcomeView, SetupProgressView, SetupCompletedView, @@ -130,6 +131,15 @@ namespace Tango.PPC.UI.ViewModels set { _selectedTimeZone = value; RaisePropertyChangedAuto(); } } + private DeploymentSlots _deploymentSlot; + /// <summary> + /// Gets or sets the deployment slot. + /// </summary> + public DeploymentSlots DeploymentSlot + { + get { return _deploymentSlot; } + set { _deploymentSlot = value; RaisePropertyChangedAuto(); } + } #endregion @@ -159,6 +169,11 @@ namespace Tango.PPC.UI.ViewModels /// Gets or sets the time zone selected command. /// </summary> public RelayCommand TimeZoneSelectedCommand { get; set; } + + /// <summary> + /// Gets or sets the environment selected command. + /// </summary> + public RelayCommand EnvironmentSelectedCommand { get; set; } #endregion #region Constructors @@ -172,7 +187,8 @@ namespace Tango.PPC.UI.ViewModels { MachineSetupManager = machineSetupManager; - HostAddress = Settings.MachineServiceAddress; + DeploymentSlot = Settings.DeploymentSlot; + SerialNumber = ""; CompleteCommand = new RelayCommand(CompleteSetup, () => State == MachineSetupStates.Completed); @@ -183,7 +199,13 @@ namespace Tango.PPC.UI.ViewModels InstallCommand = new RelayCommand(Install); RestartCommand = new RelayCommand(() => { NavigateTo(MachineSetupView.WelcomeView); }); - TimeZoneSelectedCommand = new RelayCommand(() => { NavigateTo(MachineSetupView.SetupWelcomeView); }); + TimeZoneSelectedCommand = new RelayCommand(() => { NavigateTo(MachineSetupView.EnvironmentView); }); + EnvironmentSelectedCommand = new RelayCommand(() => + { + NavigateTo(MachineSetupView.SetupWelcomeView); + Settings.DeploymentSlot = DeploymentSlot; + HostAddress = Settings.GetMachineServiceAddress(); + }); _operationSystemManager = operationSystemManager; |
