diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2019-02-07 22:32:07 +0200 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2019-02-07 22:32:07 +0200 |
| commit | eb7e0a5b66657d58ed7b6ea24c6ad7d1b4239c8f (patch) | |
| tree | b9346f7a4953ae949f37f397936aa27a593f6452 /Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs | |
| parent | 1cbfa754eea84d46fca7a9b0d27a0a1a212b9944 (diff) | |
| parent | 72165197a9c2787f9441a5576c9a182eb839f904 (diff) | |
| download | Tango-eb7e0a5b66657d58ed7b6ea24c6ad7d1b4239c8f.tar.gz Tango-eb7e0a5b66657d58ed7b6ea24c6ad7d1b4239c8f.zip | |
merge
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 | 12 |
1 files changed, 11 insertions, 1 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 f5c6f43b9..ee1b39ca6 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/ViewModels/MachineSetupViewVM.cs @@ -142,6 +142,13 @@ namespace Tango.PPC.UI.ViewModels set { _deploymentSlot = value; RaisePropertyChangedAuto(); } } + private MachineSetupView _currentView; + public MachineSetupView CurrentView + { + get { return _currentView; } + set { _currentView = value; RaisePropertyChangedAuto(); } + } + #endregion #region Commands @@ -284,6 +291,7 @@ namespace Tango.PPC.UI.ViewModels /// <param name="view">The view.</param> private Task NavigateTo(MachineSetupView view) { + CurrentView = view; return View.NavigateTo(view); } @@ -312,11 +320,13 @@ namespace Tango.PPC.UI.ViewModels } } - private void ConnectivityProvider_ConnectionStateChanged(object sender, Common.Connectivity.ConnectionStateEventArgs e) + private async void ConnectivityProvider_ConnectionStateChanged(object sender, Common.Connectivity.ConnectionStateEventArgs e) { if (e.IsConnected) { ConnectivityProvider.ConnectionStateChanged -= ConnectivityProvider_ConnectionStateChanged; + await NavigateTo(MachineSetupView.WiFiTestView); + await Task.Delay(5000); EnsureWiFi(); } } |
