protected void EavManagementEntityDeleting(EntityDeletingEventArgs e) { if (!Sexy.CanDeleteEntity(e.EntityId)) { e.Cancel = true; e.CancelMessage += " This entity cannot be deleted because it is in use (2sxc)."; } }