C# Class FarsiLibrary.Win.Helpers.CollectionWithEvents

Extend collection base class by generating change events.
Inheritance: System.Collections.CollectionBase
Mostrar archivo Open project: DanWBR/dwsim3

Private Properties

Property Type Description

Public Methods

Method Description
CollectionWithEvents ( ) : System.Collections

Initializes DrawTab new instance of the CollectionWithEvents class.

ResumeEvents ( ) : void

Safe to resume change events.

SuspendEvents ( ) : void

Do not generate change events until resumed.

Protected Methods

Method Description
IndexOf ( object value ) : int

Returns the index of the first occurrence of DrawTab value.

OnClear ( ) : void

Raises the Clearing event when not suspended.

OnClearComplete ( ) : void

Raises the Cleared event when not suspended.

OnInsert ( int index, object value ) : void

Raises the Inserting event when not suspended.

OnInsertComplete ( int index, object value ) : void

Raises the Inserted event when not suspended.

OnRemove ( int index, object value ) : void

Raises the Removing event when not suspended.

OnRemoveComplete ( int index, object value ) : void

Raises the Removed event when not suspended.

Method Details

CollectionWithEvents() public method

Initializes DrawTab new instance of the CollectionWithEvents class.
public CollectionWithEvents ( ) : System.Collections
return System.Collections

IndexOf() protected method

Returns the index of the first occurrence of DrawTab value.
protected IndexOf ( object value ) : int
value object The object to locate.
return int

OnClear() protected method

Raises the Clearing event when not suspended.
protected OnClear ( ) : void
return void

OnClearComplete() protected method

Raises the Cleared event when not suspended.
protected OnClearComplete ( ) : void
return void

OnInsert() protected method

Raises the Inserting event when not suspended.
protected OnInsert ( int index, object value ) : void
index int Index of object being inserted.
value object The object that is being inserted.
return void

OnInsertComplete() protected method

Raises the Inserted event when not suspended.
protected OnInsertComplete ( int index, object value ) : void
index int Index of inserted object.
value object The object that has been inserted.
return void

OnRemove() protected method

Raises the Removing event when not suspended.
protected OnRemove ( int index, object value ) : void
index int Index of object being removed.
value object The object that is being removed.
return void

OnRemoveComplete() protected method

Raises the Removed event when not suspended.
protected OnRemoveComplete ( int index, object value ) : void
index int Index of removed object.
value object The object that has been removed.
return void

ResumeEvents() public method

Safe to resume change events.
public ResumeEvents ( ) : void
return void

SuspendEvents() public method

Do not generate change events until resumed.
public SuspendEvents ( ) : void
return void