Advertisement
Guest User

Untitled

a guest
Sep 3rd, 2015
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. delegate void PropertyChange();
  2.  
  3. class SomeClass
  4. {
  5. public event UI UserEvent;
  6. void OnUserEvent()
  7. {
  8. UserEvent();
  9. }
  10.  
  11. private String someVal;
  12. public String SomeVal{
  13. get {}
  14. set
  15. {
  16. someVal = value;
  17. OnUserEvent();
  18. }
  19. ....
  20. }
  21.  
  22. public Form1()
  23. {
  24. InitializeComponent();
  25. CasesFileSystem.UserEvent += new UI(onChange);
  26. }
  27.  
  28. private void onChange()
  29. {
  30. textBox1.Text = "ffuuuuuu";
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement