Structured Shutdown - Cancelable events with CAB
Structured Shutdown - Cancelable events with CAB
Published 07 octubre 06 05:03 p.m. | matiaswoloski
A recurring question on the CAB/SCSF community is how to perform a voting mechanism to close an application. The FormClosing event allow us to decide wether or not we will let the shell form close. However this is not enough because you might want to decide to close or not based on the state of the views or workitems.
I came up with a simple solution to this using the EventBroker: