Esempio n. 1
0
        public void Detach(OverlayResult overlayDataResult)
        {
            var item = _overlayReferences.Find(p => p.OverlayReferenceId == overlayDataResult.OverlayRef);

            if (item == null)
            {
                return;
            }

            _overlayReferences.Remove(item);

            if (!_overlayReferences.Any())
            {
                _sequenceNumber = 0;
            }

            OnDetach?.Invoke(overlayDataResult);

            item.CloseOverlayReference(overlayDataResult);
        }
Esempio n. 2
0
 public void BackdropClicked(OverlayResult overlayDataResult)
 {
     Detach(overlayDataResult);
 }