using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Text; using System.Threading.Tasks; using Tango.Core.DI; namespace Tango.FSE.Common.Navigation { public abstract class ModularNavigationFSEViewModel : FSEViewModel { [TangoInject(TangoInjectMode.WhenAvailable)] protected IModularNavigationNavigationManager ModularNavigationManager { get; set; } public override void OnBeforeNavigatedTo() { base.OnBeforeNavigatedTo(); if (GetType().GetCustomAttribute() != null) { ModularNavigationManager.RaiseOnBeforeNavigatedToFirst(); } } public override void OnNavigatedTo() { base.OnNavigatedTo(); if (GetType().GetCustomAttribute() != null) { ModularNavigationManager.RaiseOnNavigatedToFirst(); } } } }