Group: Forum Members
Posts: 6,
Visits: 39
|
Morning, all. Just a quick question about the use of the BeforeDelete event for business objects.
I'm using the standard delete button as provided by the MaintenanceFormToolStrip, which triggers the BeforeDelete event of my primary business object. What I need to happen in the event is this: If the user confirms the delete by choosing "yes" from the dialog that comes up, functions in other business objects must first occur, and then the deletion in the main business object happens.
My trouble is the fact that those functions in other business objects are called no matter what before dialog comes up, so even if the user clicks "no", the functions have been run. I was under the impression that the BeforeDelete event would be triggered only when the user confirmed the deletion and not merely when the delete button was clicked. Is there a standard way to handle this?
Thanks in advance,
Adam
|