Exemple #1
0
 private void a(object A_0, imageSourceRenderedResultEventArgs A_1)
 {
     rightImageSourceRendered -= new EventHandler <imageSourceRenderedResultEventArgs>(a);
     if (A_1.imgSource != null)
     {
         rightImageSource = A_1.imgSource;
         isRendering      = false;
     }
 }
Exemple #2
0
 private void c(object A_0, imageSourceRenderedResultEventArgs A_1)
 {
     resizeImageSourceRendered -= new EventHandler <imageSourceRenderedResultEventArgs>(c);
     g = false;
     if (leftPageIndex.Equals(A_1.renderPageIndex))
     {
         if (PDFScale.Equals(A_1.sourceScale))
         {
             EventHandler <imageSourceRenderedResultEventArgs> eventHandler = d;
             if (eventHandler != null)
             {
                 eventHandler(A_0, A_1);
             }
             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 += new EventHandler <imageSourceRenderedResultEventArgs>(c);
                     g = true;
                     return;
                 }
                 catch
                 {
                 }
             }
         }
     }
     else
     {
         g = false;
         zoomThread.Clear();
     }
 }