Beispiel #1
0
 private void OnViewerPropertyChanged(object sender, PropertyChangedEventArgs args)
 {
     if (args.PropertyName == "ImageId" && sender is Viewer sendViewer)
     {
         ViewerMoved?.Invoke(sendViewer);
     }
 }
Beispiel #2
0
        private void OnViewerPropertyChanged(object sender, PropertyChangedEventArgs args)
        {
            Viewer sendViewer = sender as Viewer;

            if ((args.PropertyName == "ImageId") && (sendViewer != null))
            {
                ViewerMoved?.Invoke(sendViewer);
            }
        }