Show / Hide Table of Contents

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
System.Object
System.EventArgs
RemovingFromListEventArgs
Inherited Members
System.EventArgs.Empty
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CADability
Assembly: CADability.dll
Syntax
public class RemovingFromListEventArgs : EventArgs

Constructors

| Improve this Doc View Source

RemovingFromListEventArgs(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 Source

Item

The object that is going to be removed.

Declaration
public object Item
Field Value
Type Description
System.Object
| Improve this Doc View Source

List

The list from which the object is going to be removed.

Declaration
public object List
Field Value
Type Description
System.Object
| Improve this Doc View Source

Name

Name of the Item.

Declaration
public string Name
Field Value
Type Description
System.String
| Improve this Doc View Source

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
| Improve this Doc View Source

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 Source

DontRemoveLastItem()

Displays a massage telling the user that the last item cannot be removed

Declaration
public virtual void DontRemoveLastItem()
| Improve this Doc View Source

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()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX