Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SampleClass
- {
- delegate void UpdateGui(int value);
- public void Main()
- {
- //loading stuff in another thread
- //invoke method of GUI Thread
- new UpdateGui(SetGuiProperties).Invoke(300);
- }
- public void SetGuiProperties(int value)
- {
- //Set gui things here!
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement