Class RemovingFromListEventArgs
Used as a parameter in the event RemovingFromListDelegate. When handling an appropriate event, you can prevent the object beeing removed from the list.
Inheritance
Inherited Members
Namespace: CADability
Assembly: CADability.dll
Syntax
public class RemovingFromListEventArgs : EventArgs
Constructors
| Improve this Doc View SourceRemovingFromListEventArgs(Object, Object, String, String)
Creates an RemovingFromListEventArgs object.
Declaration
public RemovingFromListEventArgs(object List, object Item, string Name, string ResourceID)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | List | The List, from which the object is going to be removed |
| System.Object | Item | The object that is going to be removed |
| System.String | Name | |
| System.String | ResourceID |
Fields
| Improve this Doc View SourceItem
The object that is going to be removed.
Declaration
public object Item
Field Value
| Type | Description |
|---|---|
| System.Object |
List
The list from which the object is going to be removed.
Declaration
public object List
Field Value
| Type | Description |
|---|---|
| System.Object |
Name
Name of the Item.
Declaration
public string Name
Field Value
| Type | Description |
|---|---|
| System.String |
Refuse
Set this to true if you want to prevent the object to be removed.
Declaration
public bool Refuse
Field Value
| Type | Description |
|---|---|
| System.Boolean |
ResourceID
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.
Declaration
public string ResourceID
Field Value
| Type | Description |
|---|---|
| System.String |
Methods
| Improve this Doc View SourceDontRemoveLastItem()
Displays a massage telling the user that the last item cannot be removed
Declaration
public virtual void DontRemoveLastItem()
ItemIsUsed()
Displays a massage telling the user that the item is still in use and asks the user whether the item should be removed anyway.
Declaration
public virtual void ItemIsUsed()