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