Esempio n. 1
0
 /// <summary>
 /// Handle html renderer invalidate and re-layout as requested.
 /// </summary>
 private void OnRefresh(object sender, HtmlRefreshEventArgs e)
 {
     if (e.Layout)
     {
         if (InvokeRequired)
             Invoke(new MethodInvoker(PerformLayout));
         else
             PerformLayout();
     }
     if (InvokeRequired)
         Invoke(new MethodInvoker(Invalidate));
     else
         Invalidate();
 }
Esempio n. 2
0
 /// <summary>
 /// Handle html renderer invalidate and re-layout as requested.
 /// </summary>
 private void OnRefresh(object sender, HtmlRefreshEventArgs e)
 {
     //            if (e.Layout)
     //            {
     //                if (InvokeRequired)
     //                    Invoke(new MethodInvoker(PerformLayout));
     //                else
     //                    PerformLayout();
     //            }
     //            if (InvokeRequired)
     //                Invoke(new MethodInvoker(Invalidate));
     //            else
     //                Invalidate();
 }