From 3a82a6656c9117f94e78dbb33805fdaf49a5531c Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 19 Jun 2018 18:01:20 +0300 Subject: Started working on Job Summery screen. --- .../Tango.PPC.UI/Navigation/DefaultNavigationManager.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/Navigation') 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 _navigationHistory; + private IPPCModule _currentModule; + /// + /// Gets or sets the current module. + /// + public IPPCModule CurrentModule + { + get { return _currentModule; } + private set { _currentModule = value; RaisePropertyChangedAuto(); } + } + /// /// Navigates to the previous view. /// @@ -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; -- cgit v1.3.1