Advertisement
Guest User

Untitled

a guest
Nov 19th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.44 KB | None | 0 0
  1. private void Render()
  2.         {
  3.             for(int y = 0; y < data.Count; y++)
  4.             {
  5.                 PutLine(data[y]);
  6.  
  7.                 var d = source.Dispatcher.BeginInvoke(new Action(() => source.Source = BitmapToImageSource(bmp)));
  8.                 while (d.Status != System.Windows.Threading.DispatcherOperationStatus.Completed)
  9.                 {
  10.                     Thread.Sleep(1);
  11.                 }
  12.             }
  13.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement