diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-19 18:01:20 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-06-19 18:01:20 +0300 |
| commit | 3a82a6656c9117f94e78dbb33805fdaf49a5531c (patch) | |
| tree | 96ab0ad8d9341b7912097eae35c026b9f3005351 /Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation | |
| parent | 0eca640aa38c5697739f66d1b3e565d46e615b78 (diff) | |
| download | Tango-3a82a6656c9117f94e78dbb33805fdaf49a5531c.tar.gz Tango-3a82a6656c9117f94e78dbb33805fdaf49a5531c.zip | |
Started working on Job Summery screen.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation/DefaultNavigationManager.cs | 15 |
1 files changed, 12 insertions, 3 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 2213011bf..befad6000 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation/DefaultNavigationManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation/DefaultNavigationManager.cs @@ -24,10 +24,19 @@ namespace Tango.PPC.UI.Navigation { private IPPCModuleLoader _moduleLoader; private Object _currentVM; - private IPPCModule _currentModule; private Stack<String> _navigationHistory; + private IPPCModule _currentModule; + /// <summary> + /// Gets or sets the current module. + /// </summary> + public IPPCModule CurrentModule + { + get { return _currentModule; } + private set { _currentModule = value; RaisePropertyChangedAuto(); } + } + /// <summary> /// Navigates to the previous view. /// </summary> @@ -119,7 +128,7 @@ namespace Tango.PPC.UI.Navigation String[] path = fullPath.Split('.'); var module = _moduleLoader.UserModules.SingleOrDefault(x => x.GetType().Name == path[0] || x.Name == path[0]); - if (path.Length == 1 && path[0] == _currentModule.Name) return true; + if (path.Length == 1 && path[0] == CurrentModule.Name) return true; if (_currentVM != null && _currentVM is INavigationBlocker) { @@ -134,7 +143,7 @@ namespace Tango.PPC.UI.Navigation MainView.Instance.NavigationControl.NavigateTo(NavigationView.LayoutView.ToString()); var navigationControl = LayoutView.Instance.NavigationControl; - _currentModule = module; + CurrentModule = module; var moduleView = navigationControl.NavigateTo(module.Name); _currentVM = moduleView.DataContext; |
