public void Release()
        {
            DicomImagePlane.ReleaseCache();

            --_referenceCount;
            if (_referenceCount <= 0)
            {
                _viewer.EventBroker.PresentationImageSelected -= OnPresentationImageSelected;
                _viewer.EventBroker.TileSelected -= OnTileSelected;

                Coordinators.Remove(_viewer);
            }
        }
Exemple #2
0
        public void Release()
        {
            DicomImagePlane.ReleaseCache();

            if (_referenceCount > 0)
            {
                --_referenceCount;
            }

            if (_referenceCount <= 0)
            {
                _viewer.EventBroker.PresentationImageSelected -= OnPresentationImageSelected;
                _viewer.EventBroker.TileSelected -= OnTileSelected;
            }
        }