From d33c19b3ac6803de4b5c8d475832efef131c1a45 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Wed, 30 Dec 2020 15:11:34 +0000 Subject: Revert "Hope it is fine" --- .../Tango.PPC.Common/Navigation/INavigationManager.cs | 17 ++++++++++++++++- .../PPC/Tango.PPC.Common/Navigation/NavigationView.cs | 3 ++- 2 files changed, 18 insertions(+), 2 deletions(-) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation/INavigationManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation/INavigationManager.cs index 8df0a7fb8..1fcdb4410 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation/INavigationManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation/INavigationManager.cs @@ -12,6 +12,11 @@ namespace Tango.PPC.Common.Navigation /// public interface INavigationManager { + /// + /// Occurs when the current view model has changed. + /// + event EventHandler CurrentVMChanged; + /// /// Gets the current module. /// @@ -27,6 +32,16 @@ namespace Tango.PPC.Common.Navigation /// bool CanNavigateBack { get; } + /// + /// Gets a value indicating whether the back should be enabled. + /// + bool IsBackEnabled { get; set; } + + /// + /// Gets or sets a value indicating whether the navigation system is currently navigating. + /// + bool IsNavigating { get; set; } + /// /// Navigates to the previous view if is true. /// @@ -79,7 +94,7 @@ namespace Tango.PPC.Common.Navigation /// Navigates to the specified module and view by full path (e.g Jobs.JobsView). /// /// The full path. - Task NavigateTo(String fullPath, bool pushToHistory = true); + Task NavigateTo(String fullPath, bool pushToHistory = true, Action onNavigating = null, Action onNavigated = null); /// /// Navigates to the specified module and view with the specified object and expecting a return parameter. diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation/NavigationView.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation/NavigationView.cs index b4562054c..643908e87 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation/NavigationView.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Navigation/NavigationView.cs @@ -22,6 +22,7 @@ namespace Tango.PPC.Common.Navigation HomeModule, ShutdownView, RestartingSystemView, - EmergencyView + EmergencyView, + RestartingView, } } -- cgit v1.3.1