Exemplo n.º 1
0
 private void rightimageSourceRendered(object sender, imageSourceRenderedResultEventArgs e)
 {
     rightImageSourceRendered -= rightimageSourceRendered;
     if (e.imgSource != null)
     {
         rightImageSource = e.imgSource;
         isRendering      = false;
     }
 }
Exemplo n.º 2
0
 private void zoomimageSourceRendered(object sender, imageSourceRenderedResultEventArgs e)
 {
     resizeImageSourceRendered -= zoomimageSourceRendered;
     isResizing = false;
     if (leftPageIndex.Equals(e.renderPageIndex))
     {
         if (PDFScale.Equals(e.sourceScale))
         {
             this.sendresizeImageSourceRendered?.Invoke(sender, e);
             isRendering = false;
             zoomThread.Clear();
             zoomStep = 0;
             PDFScale = 1f;
             return;
         }
         for (int num = zoomThread.Count - 1; num >= 0; num--)
         {
             if (PDFScale.Equals((float)Convert.ToDouble(zoomThread[num].Name)))
             {
                 try
                 {
                     zoomThread[num].Start();
                     resizeImageSourceRendered += zoomimageSourceRendered;
                     isResizing = true;
                     return;
                 }
                 catch
                 {
                 }
             }
         }
     }
     else
     {
         isResizing = false;
         zoomThread.Clear();
     }
 }