Click or drag to resize
ObserverAwareBindingListT Class
Special version of the bindinglist, where the generic elements have to implement IEventBasedObserver to get their events managed.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionT
    System.ComponentModelBindingListT
      SD.Tools.Algorithmia.GeneralDataStructuresObserverAwareBindingListT

Namespace:  SD.Tools.Algorithmia.GeneralDataStructures
Assembly:  SD.Tools.Algorithmia (in SD.Tools.Algorithmia.dll) Version: 1.2.0.0 (1.2.16.0406)
Syntax
public class ObserverAwareBindingList<T> : BindingList<T>
where T : class, IEventBasedObserver

Type Parameters

T
Type of the element contained in this special binding list.

The ObserverAwareBindingListT type exposes the following members.

Constructors
  NameDescription
Public methodObserverAwareBindingListT
Initializes a new instance of the ObserverAwareBindingListT class.
Public methodObserverAwareBindingListT(IListT)
Initializes a new instance of the ObserverAwareBindingListT class.
Top
Properties
  NameDescription
Public propertyAllowEdit
Gets or sets a value indicating whether items in the list can be edited.
(Inherited from BindingListT.)
Public propertyAllowNew
Gets or sets a value indicating whether you can add items to the list using the AddNew method.
(Inherited from BindingListT.)
Public propertyAllowRemove
Gets or sets a value indicating whether you can remove items from the collection.
(Inherited from BindingListT.)
Public propertyCount (Inherited from CollectionT.)
Protected propertyIsSortedCore
Gets a value indicating whether the list is sorted.
(Inherited from BindingListT.)
Public propertyItem
Gets or sets the element at the specified index.
(Inherited from CollectionT.)
Protected propertyItems (Inherited from CollectionT.)
Public propertyRaiseListChangedEvents
Gets or sets a value indicating whether adding or removing items within the list raises ListChanged events.
(Inherited from BindingListT.)
Protected propertySortDirectionCore
Gets the direction the list is sorted.
(Inherited from BindingListT.)
Protected propertySortPropertyCore
Gets the property descriptor that is used for sorting the list if sorting is implemented in a derived class; otherwise, returns null.
(Inherited from BindingListT.)
Protected propertySupportsChangeNotificationCore
Gets a value indicating whether ListChanged events are enabled.
(Inherited from BindingListT.)
Protected propertySupportsSearchingCore
Gets a value indicating whether the list supports searching.
(Inherited from BindingListT.)
Protected propertySupportsSortingCore
Gets a value indicating whether the list supports sorting.
(Inherited from BindingListT.)
Top
Methods
  NameDescription
Public methodAdd (Inherited from CollectionT.)
Public methodAddNew
Adds a new item to the collection.
(Inherited from BindingListT.)
Protected methodAddNewCore
Adds a new item to the end of the collection.
(Inherited from BindingListT.)
Public methodAddRange
Adds the range.
Protected methodApplySortCore
Sorts the items if overridden in a derived class; otherwise, throws a NotSupportedException.
(Inherited from BindingListT.)
Public methodCancelNew
Discards a pending new item.
(Inherited from BindingListT.)
Public methodClear (Inherited from CollectionT.)
Protected methodClearItems
Removes all elements from the collection.
(Overrides BindingListTClearItems.)
Public methodContains (Inherited from CollectionT.)
Public methodCopyTo (Inherited from CollectionT.)
Public methodEndNew
Commits a pending new item to the collection.
(Inherited from BindingListT.)
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Protected methodFindCore
Searches for the index of the item that has the specified property descriptor with the specified value, if searching is implemented in a derived class; otherwise, a NotSupportedException.
(Inherited from BindingListT.)
Public methodGetEnumerator (Inherited from CollectionT.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf (Inherited from CollectionT.)
Public methodInsert (Inherited from CollectionT.)
Protected methodInsertItem
Inserts the specified item in the list at the specified index.
(Overrides BindingListTInsertItem(Int32, T).)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnAddingNew
Raises the AddingNew event.
(Inherited from BindingListT.)
Protected methodOnListChanged
Raises the ListChanged event.
(Inherited from BindingListT.)
Public methodRemove (Inherited from CollectionT.)
Public methodRemoveAt (Inherited from CollectionT.)
Protected methodRemoveItem
Removes the item at the specified index.
(Overrides BindingListTRemoveItem(Int32).)
Protected methodRemoveSortCore
Removes any sort applied with ApplySortCore(PropertyDescriptor, ListSortDirection) if sorting is implemented in a derived class; otherwise, raises NotSupportedException.
(Inherited from BindingListT.)
Public methodResetBindings
Raises a ListChanged event of type Reset.
(Inherited from BindingListT.)
Public methodResetItem
Raises a ListChanged event of type ItemChanged for the item at the specified position.
(Inherited from BindingListT.)
Protected methodSetItem
Replaces the item at the specified index with the specified item.
(Overrides BindingListTSetItem(Int32, T).)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventAddingNew
Occurs before an item is added to the list.
(Inherited from BindingListT.)
Public eventListChanged
Occurs when the list or an item in the list changes.
(Inherited from BindingListT.)
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIListAdd
Adds an item to the IList.
(Inherited from CollectionT.)
Explicit interface implementationPrivate methodIBindingListAddIndex
For a description of this member, see AddIndex(PropertyDescriptor).
(Inherited from BindingListT.)
Explicit interface implementationPrivate methodIBindingListAddNew
Adds a new item to the list. For more information, see AddNew.
(Inherited from BindingListT.)
Explicit interface implementationPrivate propertyIBindingListAllowEdit
Gets a value indicating whether items in the list can be edited.
(Inherited from BindingListT.)
Explicit interface implementationPrivate propertyIBindingListAllowNew
Gets a value indicating whether new items can be added to the list using the AddNew method.
(Inherited from BindingListT.)
Explicit interface implementationPrivate propertyIBindingListAllowRemove
Gets a value indicating whether items can be removed from the list.
(Inherited from BindingListT.)
Explicit interface implementationPrivate methodIBindingListApplySort
Sorts the list based on a PropertyDescriptor and a ListSortDirection. For a complete description of this member, see ApplySort(PropertyDescriptor, ListSortDirection).
(Inherited from BindingListT.)
Explicit interface implementationPrivate methodIListContains
Determines whether the IList contains a specific value.
(Inherited from CollectionT.)
Explicit interface implementationPrivate methodICollectionCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
(Inherited from CollectionT.)
Explicit interface implementationPrivate methodIBindingListFind
For a description of this member, see Find(PropertyDescriptor, Object).
(Inherited from BindingListT.)
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from CollectionT.)
Explicit interface implementationPrivate methodIListIndexOf
Determines the index of a specific item in the IList.
(Inherited from CollectionT.)
Explicit interface implementationPrivate methodIListInsert
Inserts an item into the IList at the specified index.
(Inherited from CollectionT.)
Explicit interface implementationPrivate propertyIListIsFixedSize
Gets a value indicating whether the IList has a fixed size.
(Inherited from CollectionT.)
Explicit interface implementationPrivate propertyICollectionTIsReadOnly (Inherited from CollectionT.)
Explicit interface implementationPrivate propertyIListIsReadOnly
Gets a value indicating whether the IList is read-only.
(Inherited from CollectionT.)
Explicit interface implementationPrivate propertyIBindingListIsSorted
For a description of this member, see IsSorted.
(Inherited from BindingListT.)
Explicit interface implementationPrivate propertyICollectionIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from CollectionT.)
Explicit interface implementationPrivate propertyIListItem
Gets or sets the element at the specified index.
(Inherited from CollectionT.)
Explicit interface implementationPrivate propertyIRaiseItemChangedEventsRaisesItemChangedEvents
Gets a value indicating whether item property value changes raise ListChanged events of type ItemChanged. This member cannot be overridden in a derived class.
(Inherited from BindingListT.)
Explicit interface implementationPrivate methodIListRemove
Removes the first occurrence of a specific object from the IList.
(Inherited from CollectionT.)
Explicit interface implementationPrivate methodIBindingListRemoveIndex
For a description of this member, see RemoveIndex(PropertyDescriptor).
(Inherited from BindingListT.)
Explicit interface implementationPrivate methodIBindingListRemoveSort (Inherited from BindingListT.)
Explicit interface implementationPrivate propertyIBindingListSortDirection
For a description of this member, see SortDirection.
(Inherited from BindingListT.)
Explicit interface implementationPrivate propertyIBindingListSortProperty
For a description of this member, see SortProperty.
(Inherited from BindingListT.)
Explicit interface implementationPrivate propertyIBindingListSupportsChangeNotification
For a description of this member, see SupportsChangeNotification.
(Inherited from BindingListT.)
Explicit interface implementationPrivate propertyIBindingListSupportsSearching
For a description of this member, see SupportsSearching.
(Inherited from BindingListT.)
Explicit interface implementationPrivate propertyIBindingListSupportsSorting
For a description of this member, see SupportsSorting.
(Inherited from BindingListT.)
Explicit interface implementationPrivate propertyICollectionSyncRoot
Gets an object that can be used to synchronize access to the ICollection.
(Inherited from CollectionT.)
Top
See Also