Extends BindingList of T by adding extra behaviors. More...
Public Member Functions | |
void | AddRange (System.Collections.Generic.IEnumerable< T > range) |
Add a range of items to the list. More... | |
Protected Member Functions | |
void | OnRemovingItem (T removedItem) |
Raise the RemovingItem event. More... | |
override void | RemoveItem (int index) |
Remove the item at the specified index. More... | |
virtual void | OnBusyChanged (BusyChangedEventArgs args) |
Override this method to be notified when the IsBusy property has changed. More... | |
void | OnBusyChanged (string propertyName, bool busy) |
Raises the BusyChanged event for a specific property. More... | |
virtual void | OnUnhandledAsyncException (ErrorEventArgs error) |
Method invoked when an unhandled async exception has occurred. More... | |
void | OnUnhandledAsyncException (object originalSender, Exception error) |
Raises the UnhandledAsyncException event. More... | |
override void | InsertItem (int index, T item) |
Invoked when an item is inserted into the list. More... | |
virtual void | OnAddEventHooks (T item) |
Method invoked when events are hooked for a child object. More... | |
virtual void | OnRemoveEventHooks (T item) |
Method invoked when events are unhooked for a child object. More... | |
virtual void | OnDeserialized () |
This method is called on a newly deserialized object after deserialization is complete. More... | |
virtual void | OnChildChanged (ChildChangedEventArgs e) |
Raises the ChildChanged event, indicating that a child object has been changed. More... | |
virtual void | Child_PropertyChanged (object sender, PropertyChangedEventArgs e) |
Handles any PropertyChanged event from a child object and echoes it up as a ChildChanged event. More... | |
Protected Member Functions inherited from Csla.Core.MobileBindingList< T > | |
virtual void | SetLoadListMode (bool enabled) |
Sets the load list mode for the list More... | |
virtual void | OnGetState (SerializationInfo info) |
Override this method to get custom field values from the serialization stream. More... | |
virtual void | OnGetChildren (SerializationInfo info, MobileFormatter formatter) |
Override this method to get custom child object values from the serialization stream. More... | |
virtual void | OnSetState (SerializationInfo info) |
Override this method to set custom field values into the serialization stream. More... | |
virtual void | OnSetChildren (SerializationInfo info, MobileFormatter formatter) |
Override this method to set custom child object values into the serialization stream. More... | |
Properties | |
EventHandler< RemovingItemEventArgs > | RemovingItem |
Implements a serialization-safe RemovingItem event. More... | |
BusyChangedEventHandler | BusyChanged |
Event indicating that the busy status of the object has changed. More... | |
virtual bool | IsBusy [get] |
Gets the busy status for this object and its child objects. More... | |
virtual bool | IsSelfBusy [get] |
Gets the busy status for this object. More... | |
EventHandler< ErrorEventArgs > | UnhandledAsyncException |
Event indicating that an exception occurred during an async operation. More... | |
EventHandler< Csla.Core.ChildChangedEventArgs > | ChildChanged |
Event raised when a child object has been changed. More... | |
IDisposable | SuppressListChangedEvents [get] |
Use this object to suppress ListChangedEvents for an entire code block. More... | |
Properties inherited from Csla.Core.MobileBindingList< T > | |
LoadListModeObject | LoadListMode [get] |
By wrapping this property inside Using block you can set property values on current business object without raising PropertyChanged events and checking user rights. More... | |
Properties inherited from Csla.Core.INotifyBusy | |
bool | IsBusy [get] |
Gets a value indicating whether the object, or any of the object's child objects, are busy running an asynchronous operation. More... | |
bool | IsSelfBusy [get] |
Gets a value indicating whether the object is busy running an asynchronous operation. More... | |
Additional Inherited Members | |
Events inherited from Csla.Core.IExtendedBindingList | |
EventHandler< RemovingItemEventArgs > | RemovingItem |
Event indicating that an item is being removed from the list. More... | |
Events inherited from Csla.Core.INotifyBusy | |
BusyChangedEventHandler | BusyChanged |
Event raised when the object's busy status changes. More... | |
Events inherited from Csla.Core.INotifyUnhandledAsyncException | |
EventHandler< ErrorEventArgs > | UnhandledAsyncException |
Event indicating that an exception occurred during an asynchronous operation. More... | |
Events inherited from Csla.Core.INotifyChildChanged | |
EventHandler< ChildChangedEventArgs > | ChildChanged |
Event indictating that a child object has changed. More... | |
Extends BindingList of T by adding extra behaviors.
T | Type of item contained in list. |
Definition at line 24 of file ExtendedBindingList.cs.
void Csla.Core.ExtendedBindingList< T >.AddRange | ( | System.Collections.Generic.IEnumerable< T > | range | ) |
Add a range of items to the list.
range | List of items to add. |
Definition at line 101 of file ExtendedBindingList.cs.
|
protectedvirtual |
Handles any PropertyChanged event from a child object and echoes it up as a ChildChanged event.
sender | Object that raised the event. |
e | Property changed args. |
Reimplemented in Csla.BusinessBindingListBase< T, C >.
Definition at line 384 of file ExtendedBindingList.cs.
|
protected |
Invoked when an item is inserted into the list.
index | Index of new item. |
item | Reference to new item. |
Definition at line 214 of file ExtendedBindingList.cs.
|
protectedvirtual |
Method invoked when events are hooked for a child object.
item | Reference to child object. |
Definition at line 226 of file ExtendedBindingList.cs.
|
protectedvirtual |
Override this method to be notified when the IsBusy property has changed.
args | Event arguments. |
Definition at line 126 of file ExtendedBindingList.cs.
|
protected |
Raises the BusyChanged event for a specific property.
propertyName | Name of the property. |
busy | New busy value. |
Definition at line 137 of file ExtendedBindingList.cs.
|
protectedvirtual |
Raises the ChildChanged event, indicating that a child object has been changed.
e | ChildChangedEventArgs object. |
Definition at line 327 of file ExtendedBindingList.cs.
|
protectedvirtual |
This method is called on a newly deserialized object after deserialization is complete.
Reimplemented in Csla.BusinessBindingListBase< T, C >, and Csla.DynamicBindingListBase< T >.
Definition at line 275 of file ExtendedBindingList.cs.
|
protectedvirtual |
Method invoked when events are unhooked for a child object.
item | Reference to child object. |
Definition at line 251 of file ExtendedBindingList.cs.
|
protected |
Raise the RemovingItem event.
removedItem | A reference to the item that is being removed. |
Definition at line 72 of file ExtendedBindingList.cs.
|
protectedvirtual |
Method invoked when an unhandled async exception has occurred.
error | Event arguments. |
Definition at line 188 of file ExtendedBindingList.cs.
|
protected |
Raises the UnhandledAsyncException event.
originalSender | Original sender of event. |
error | Exception that occurred. |
Definition at line 199 of file ExtendedBindingList.cs.
|
protected |
Remove the item at the specified index.
index | The zero-based index of the item to remove. |
Definition at line 90 of file ExtendedBindingList.cs.
|
addremove |
Event indicating that the busy status of the object has changed.
Definition at line 115 of file ExtendedBindingList.cs.
|
addremove |
Event raised when a child object has been changed.
Definition at line 305 of file ExtendedBindingList.cs.
|
get |
Gets the busy status for this object and its child objects.
Definition at line 148 of file ExtendedBindingList.cs.
|
get |
Gets the busy status for this object.
Definition at line 159 of file ExtendedBindingList.cs.
|
addremove |
Implements a serialization-safe RemovingItem event.
Definition at line 38 of file ExtendedBindingList.cs.
|
get |
Use this object to suppress ListChangedEvents for an entire code block.
May be nested in multiple levels for the same object.
Definition at line 404 of file ExtendedBindingList.cs.
|
addremove |
Event indicating that an exception occurred during an async operation.
Definition at line 177 of file ExtendedBindingList.cs.