Class
ProductsList

IBindingList example. Used for a data binding demonstration only

Definition

Constructors

ProductsList()

Declaration

cs-api-definition
public ProductsList()

Properties

this[int]

Declaration

cs-api-definition
public Product this[int index] { get; set; }

Parameters

index

int

Property Value

Product

Methods

Add(Product)

Declaration

cs-api-definition
public int Add(Product value)

Parameters

value

Product

Returns

int

AddNew()

Declaration

cs-api-definition
public Product AddNew()

Returns

Product

LoadProducts()

Declaration

cs-api-definition
public void LoadProducts()

OnClear()

Declaration

cs-api-definition
protected override void OnClear()

Overrides CollectionBase.OnClear()

OnClearComplete()

Declaration

cs-api-definition
protected override void OnClearComplete()

Overrides CollectionBase.OnClearComplete()

OnInsertComplete(int, object)

Declaration

cs-api-definition
protected override void OnInsertComplete(int index, object value)

Parameters

index

int

value

object

Overrides CollectionBase.OnInsertComplete(int, object)

OnListChanged(ListChangedEventArgs)

Declaration

cs-api-definition
protected virtual void OnListChanged(ListChangedEventArgs ev)

Parameters

ev

ListChangedEventArgs

OnRemoveComplete(int, object)

Declaration

cs-api-definition
protected override void OnRemoveComplete(int index, object value)

Parameters

index

int

value

object

Overrides CollectionBase.OnRemoveComplete(int, object)

OnSetComplete(int, object, object)

Declaration

cs-api-definition
protected override void OnSetComplete(int index, object oldValue, object newValue)

Parameters

index

int

oldValue

object

newValue

object

Overrides CollectionBase.OnSetComplete(int, object, object)

Remove(Product)

Declaration

cs-api-definition
public void Remove(Product value)

Parameters

value

Product

Events

ListChanged

Declaration

cs-api-definition
public event ListChangedEventHandler ListChanged

Event Value

ListChangedEventHandler

Implements IBindingList.ListChanged