Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- delegate void PropertyChange();
- class SomeClass
- {
- public event UI UserEvent;
- void OnUserEvent()
- {
- UserEvent();
- }
- private String someVal;
- public String SomeVal{
- get {}
- set
- {
- someVal = value;
- OnUserEvent();
- }
- ....
- }
- public Form1()
- {
- InitializeComponent();
- CasesFileSystem.UserEvent += new UI(onChange);
- }
- private void onChange()
- {
- textBox1.Text = "ffuuuuuu";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement