Advertisement
cansik

Untitled

Jan 16th, 2012
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1.     class SampleClass
  2.     {
  3.         delegate void UpdateGui(int value);
  4.  
  5.         public void Main()
  6.         {
  7.             //loading stuff in another thread
  8.  
  9.             //invoke method of GUI Thread
  10.             new UpdateGui(SetGuiProperties).Invoke(300);
  11.         }
  12.  
  13.         public void SetGuiProperties(int value)
  14.         {
  15.             //Set gui things here!
  16.         }
  17.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement