diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-07-18 21:23:09 +0300 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-07-18 21:23:09 +0300 |
| commit | c90b4e2e753a0a86ebb2af4dc827cda206b148b6 (patch) | |
| tree | 5ac04f62e1644099648ead833e65b67c19eaf226 /Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation/DefaultNavigationManager.cs | |
| parent | 210ec31f0a6ed9459b5cb7fd8b10ebe0166c2fb1 (diff) | |
| download | Tango-c90b4e2e753a0a86ebb2af4dc827cda206b148b6.tar.gz Tango-c90b4e2e753a0a86ebb2af4dc827cda206b148b6.zip | |
Fixed several possible issues with PPC start/stop dyeing buttons visibility.
Prevented navigation conflicts raised by impatient users.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation/DefaultNavigationManager.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation/DefaultNavigationManager.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation/DefaultNavigationManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation/DefaultNavigationManager.cs index 3502648d4..7c71ef3d0 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation/DefaultNavigationManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation/DefaultNavigationManager.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; @@ -501,6 +502,10 @@ namespace Tango.PPC.UI.Navigation private void NotifyOnBeforeNavigated(object fromVM, object toVM) { + IsBackEnabled = false; + + if (fromVM == toVM) return; + if (fromVM is PPCViewModel) { (fromVM as PPCViewModel)?.OnBeforeNavigatedFrom(); @@ -514,6 +519,10 @@ namespace Tango.PPC.UI.Navigation private void NotifyOnNavigated(object fromVM, object toVM) { + IsBackEnabled = true; + + if (fromVM == toVM) return; + if (fromVM is PPCViewModel) { (fromVM as PPCViewModel)?.OnNavigatedFrom(); |
