Beispiel #1
0
 private static void Unregister(OverlayHost overlay)
 {
     if (registeredOverlays.Contains(overlay))
     {
         registeredOverlays.Remove(overlay);
     }
 }
Beispiel #2
0
 private static void Register(OverlayHost overlay)
 {
     if (!registeredOverlays.Contains(overlay) && !registeredOverlays.Any(o => o.ScopeName == overlay.ScopeName))
     {
         registeredOverlays.Add(overlay);
     }
 }