Raised when the user is about to delete a recurring item. Namespace: MindFusion.Scheduling.Compact
|
C# |
---|
public RecurringItemConfirmEventHandler RecurringItemDeleting |
Visual Basic |
---|
Public RecurringItemDeleting As RecurringItemConfirmEventHandler |
RecurringItemDeleting event handlers receive an argument of type RecurringItemConfirmEventArgs.
This event can be used to prevent the deletion of recurring items. For non-recurring items, handle the ItemDeleting event.
The following example demonstrates how to use RecurringItemDeleting event to ask the user whether he or she wants to delete all items of a recurring pattern or only the selected item(s). The example assumes that calendar already references a Calendar control. The method ConfirmDelete is supposed to return 0 if the user cancels the deletion of the item, 1 if the user chooses that only the selected item is to be deleted, and 2 if the user wants to delete the entire pattern.
C# |
---|
// Attach a handler to the event |
Visual Basic |
---|
' Attach a handler to the event |