private void ImageViewerAddOn_ImageDisplayedEvent(object sender, ImageDisplayedEventArgs e)
        {
            ImageViewerAddOn addOn = sender as ImageViewerAddOn;

            if (addOn != null)
            {
                if (addOn.PaintSize.Height > 0)
                {
                    lock (_activeImageViewerAddOns)
                    {
                        RegisterEvents(addOn);
                        _activeImageViewerAddOns.Add(addOn);
                        addOn.ImageDisplayedEvent -= ImageViewerAddOn_ImageDisplayedEvent; // unsubscribe, only needed ince
                    }
                }
            }
        }
Пример #2
0
 void imageViewerControl_ImageDisplayedEvent(object sender, ImageDisplayedEventArgs e)
 {
     BeginInvoke(new MethodInvoker(() => { textBoxDisplayTime.Text = e.ImageTime.ToString("yyyy-MM-dd HH:mm:ss.fff"); }));
 }
 /// <summary>
 /// Here we get detailed information about the actual displayed image
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 void imageViewerAddOn_ImageDisplayedEvent(object sender, ImageDisplayedEventArgs e)
 {
     // Be sure to handle quickly!!
 }