CADability dotNET

The RemovingFromListEventArgs type exposes the following members.

Constructors

  NameDescription
Public methodRemovingFromListEventArgs
Creates an RemovingFromListEventArgs object.

Methods

  NameDescription
Public methodDontRemoveLastItem
Displays a massage telling the user that the last item cannot be removed
Public methodItemIsUsed
Displays a massage telling the user that the item is still in use and asks the user whether the item should be removed anyway.

Fields

  NameDescription
Public fieldItem
The object that is going to be removed.
Public fieldList
The list from which the object is going to be removed.
Public fieldName
Name of the Item.
Public fieldRefuse
Set this to true if you want to prevent the object to be removed.
Public fieldResourceID
Resource ID for errormessages that will be displayed in ItemIsUsed()()()(). ResourceID+".ItemIsUsed" is the formattable string like "Item with the name {0} is used. Do you want to remove it anyway". ResourceID+".Label" is used for the Title of the message.

See Also