public void Delete(uint viewerId) { if (ContainsKey(viewerId)) { Viewer viewer = this[viewerId]; viewer.PropertyChanged -= OnViewerPropertyChanged; viewer.Dispose(); Remove(viewerId); ViewerRemoved?.Invoke(viewer); } }
public void Delete(IPanoramaViewer panoramaViewer) { if (ContainsKey(panoramaViewer)) { Viewer viewer = this[panoramaViewer]; viewer.PropertyChanged -= OnViewerPropertyChanged; viewer.Dispose(); Remove(panoramaViewer); ViewerRemoved?.Invoke(viewer); } }
public void InvokeViewerRemoved(string viewerID) { ViewerRemoved?.Invoke(null, viewerID); }
internal void InvokeViewerRemoved(string viewerID) { ViewerRemoved?.Invoke(null, viewerID); }