private void OnViewerPropertyChanged(object sender, PropertyChangedEventArgs args) { if (args.PropertyName == "ImageId" && sender is Viewer sendViewer) { ViewerMoved?.Invoke(sendViewer); } }
private void OnViewerPropertyChanged(object sender, PropertyChangedEventArgs args) { Viewer sendViewer = sender as Viewer; if ((args.PropertyName == "ImageId") && (sendViewer != null)) { ViewerMoved?.Invoke(sendViewer); } }