You can have multiple handlers per-event or you can deregisiter and re-register event handlers. In your case before showing the window you would want to deregister the event handler using the -=. If you wanted both to execute (just an FYI), you would add the += and both event handlers would be called (for more information read about chaining delegates).
Subscribe and Unscribe from Events.
Thanks,
Brad
No comments:
Post a Comment