internal static void Add(IModal modal) { _openedModals.Add(modal); Debug.WriteLine($"ModalsManager: Opened {modal.GetHashCode()}."); if (!isEventRegistered) { SystemNavigationManager.GetForCurrentView().BackRequested += ModalsManager_BackRequested; isEventRegistered = true; } }
internal static void Remove(IModal modal) { _openedModals.Remove(modal); Debug.WriteLine($"ModalsManager: Closed {modal.GetHashCode()}."); }