rename INavigationManager -> INavigationStack
RENAME
WalletWasabi.Fluent/ViewModels/Navigation/INavigationManager.cs
WalletWasabi.Fluent/ViewModels/Navigation/INavigationStack.cs
namespace WalletWasabi.Fluent.ViewModels.Navigation
{
- public interface INavigationManager<T> where T : INavigatable
+ public interface INavigationStack<T> where T : INavigatable
{
/// <summary>
/// The Current Page.

MODIFY
WalletWasabi.Fluent/ViewModels/Navigation/NavigationStack.cs
WalletWasabi.Fluent/ViewModels/Navigation/NavigationStack.cs
@@ -5,7 +5,7 @@ using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Fluent.ViewModels.Navigation
{
- public class NavigationStack<T> : ViewModelBase, INavigationManager<T> where T : class, INavigatable
+ public class NavigationStack<T> : ViewModelBase, INavigationStack<T> where T : class, INavigatable
{
private readonly Stack<T> _backStack;
private T? _currentPage;

MODIFY
WalletWasabi.Fluent/ViewModels/Navigation/NavigationState.cs
WalletWasabi.Fluent/ViewModels/Navigation/NavigationState.cs
@@ -13,7 +13,7 @@ namespace WalletWasabi.Fluent.ViewModels.Navigation
public class NavigationState
{
- private NavigationState(INavigationManager<RoutableViewModel> homeScreenNavigation, INavigationManager<RoutableViewModel> dialogScreenNavigation, Func<IDialogHost> dialogHost)
+ private NavigationState(INavigationStack<RoutableViewModel> homeScreenNavigation, INavigationStack<RoutableViewModel> dialogScreenNavigation, Func<IDialogHost> dialogHost)
{
HomeScreenNavigation = homeScreenNavigation;
DialogScreenNavigation = dialogScreenNavigation;
@@ -24,11 +24,11 @@ namespace WalletWasabi.Fluent.ViewModels.Navigation
public Func<IDialogHost> DialogHost { get; }
- public INavigationManager<RoutableViewModel> HomeScreenNavigation { get; }
+ public INavigationStack<RoutableViewModel> HomeScreenNavigation { get; }
- public INavigationManager<RoutableViewModel> DialogScreenNavigation { get; }
+ public INavigationStack<RoutableViewModel> DialogScreenNavigation { get; }
- public static void Register(INavigationManager<RoutableViewModel> homeScreenNavigation, INavigationManager<RoutableViewModel> dialogScreenNavigation, Func<IDialogHost> dialogHost)
+ public static void Register(INavigationStack<RoutableViewModel> homeScreenNavigation, INavigationStack<RoutableViewModel> dialogScreenNavigation, Func<IDialogHost> dialogHost)
{
Instance = new NavigationState(homeScreenNavigation, dialogScreenNavigation, dialogHost);
}

MODIFY
WalletWasabi.Fluent/ViewModels/Navigation/RoutableViewModel.cs
WalletWasabi.Fluent/ViewModels/Navigation/RoutableViewModel.cs
@@ -60,14 +60,14 @@ namespace WalletWasabi.Fluent.ViewModels.Navigation
_currentDisposable = null;
}
- public INavigationManager<RoutableViewModel> Navigate()
+ public INavigationStack<RoutableViewModel> Navigate()
{
var currentTarget = CurrentTarget == NavigationTarget.Default ? DefaultTarget : CurrentTarget;
return Navigate(currentTarget);
}
- public INavigationManager<RoutableViewModel> Navigate(NavigationTarget currentTarget)
+ public INavigationStack<RoutableViewModel> Navigate(NavigationTarget currentTarget)
{
switch (currentTarget)
{

rename INavigationManager -> INavigationStack