Synchronized view over a source list, filtered, sorted and ordered based on a query result. More...
Public Member Functions | |
LinqObservableCollection (System.Collections.ObjectModel.ObservableCollection< T > source, IEnumerable< T > queryResult) | |
LinqObservableCollection (System.Collections.ObjectModel.ObservableCollection< T > source, List< T > queryResult) | |
Creates a new instance of the observable view. More... | |
int | IndexOf (T item) |
Gets the positional index of the item. More... | |
void | Insert (int index, T item) |
Inserts item into specified position in list. More... | |
void | RemoveAt (int index) |
Removes item at specified index. More... | |
void | Add (T item) |
Adds an item to the end of the list. More... | |
void | Clear () |
Clears the list. More... | |
bool | Contains (T item) |
Gets a value indicating whether the list contains the specified item. More... | |
void | CopyTo (T[] array, int arrayIndex) |
Copies the contents of the list to an array. More... | |
bool | Remove (T item) |
Removes specified item from the list. More... | |
IEnumerator< T > | GetEnumerator () |
Gets an enumerator for the list. More... | |
int | Add (object value) |
Adds an item to the end of the list. More... | |
bool | Contains (object value) |
Gets a value indicating whether the list contains the specified item. More... | |
int | IndexOf (object value) |
Gets the positional index of the item. More... | |
void | Insert (int index, object value) |
Inserts item into specified position in list. More... | |
void | Remove (object value) |
Removes specified item from the list. More... | |
void | CopyTo (Array array, int index) |
Copies the contents of the list to an array. More... | |
Protected Member Functions | |
virtual void | OnCollectionChanged (NotifyCollectionChangedEventArgs e) |
Raises the CollectionChanged event. More... | |
Properties | |
IList< T > | Source [get] |
Gets the source list (usually a BusinessListBase) object that contains/manages all data items. More... | |
List< T > | QueryResult [get] |
Gets the query result object used to filter the view. More... | |
T | this[int index] [getset] |
Gets or sets the value at the specified index. More... | |
int | Count [get] |
Gets the number of items in the list. More... | |
bool | IsReadOnly [get] |
Gets a value indicating whether the source list is read-only. More... | |
bool | IsFixedSize [get] |
Gets a value indicating whether the source list has a fixed size. More... | |
bool | IsSynchronized [get] |
Gets a value indicating whether the source list is synchronized. More... | |
object | SyncRoot [get] |
Gets the SyncRoot from the source list. More... | |
Events | |
System.Collections.Specialized.NotifyCollectionChangedEventHandler | CollectionChanged |
Event raised when the underlying source list is changed. More... | |
Synchronized view over a source list, filtered, sorted and ordered based on a query result.
T | Type of objects contained in the list/collection. |
Definition at line 23 of file LinqObservableCollection.cs.
Csla.LinqObservableCollection< T >.LinqObservableCollection | ( | System.Collections.ObjectModel.ObservableCollection< T > | source, |
IEnumerable< T > | queryResult | ||
) |
Creates a new instance of the observable view.
source | Source list containing/managing all items. |
queryResult | Filtered query result over source list. |
Definition at line 40 of file LinqObservableCollection.cs.
Csla.LinqObservableCollection< T >.LinqObservableCollection | ( | System.Collections.ObjectModel.ObservableCollection< T > | source, |
List< T > | queryResult | ||
) |
Creates a new instance of the observable view.
source | Source list containing/managing all items. |
queryResult | Filtered query result over source list. |
Definition at line 50 of file LinqObservableCollection.cs.
int Csla.LinqObservableCollection< T >.Add | ( | object | value | ) |
Adds an item to the end of the list.
value | Item to add. |
Definition at line 283 of file LinqObservableCollection.cs.
void Csla.LinqObservableCollection< T >.Add | ( | T | item | ) |
Adds an item to the end of the list.
item | Item to add. |
Definition at line 186 of file LinqObservableCollection.cs.
void Csla.LinqObservableCollection< T >.Clear | ( | ) |
Clears the list.
Items in the LinqObservableCollection are cleared, and are also removed from the source list. Other items in the source list are unaffected.
Definition at line 199 of file LinqObservableCollection.cs.
bool Csla.LinqObservableCollection< T >.Contains | ( | object | value | ) |
Gets a value indicating whether the list contains the specified item.
value | Item to find. |
Definition at line 293 of file LinqObservableCollection.cs.
bool Csla.LinqObservableCollection< T >.Contains | ( | T | item | ) |
Gets a value indicating whether the list contains the specified item.
item | Item to find. |
Definition at line 215 of file LinqObservableCollection.cs.
void Csla.LinqObservableCollection< T >.CopyTo | ( | Array | array, |
int | index | ||
) |
Copies the contents of the list to an array.
array | Target array. |
index | Index in array where copying begins. |
Definition at line 352 of file LinqObservableCollection.cs.
void Csla.LinqObservableCollection< T >.CopyTo | ( | T[] | array, |
int | arrayIndex | ||
) |
Copies the contents of the list to an array.
array | Target array. |
arrayIndex | Index in array where copying begins. |
Definition at line 225 of file LinqObservableCollection.cs.
IEnumerator< T > Csla.LinqObservableCollection< T >.GetEnumerator | ( | ) |
Gets an enumerator for the list.
Definition at line 266 of file LinqObservableCollection.cs.
int Csla.LinqObservableCollection< T >.IndexOf | ( | object | value | ) |
Gets the positional index of the item.
value | Item to find. |
Definition at line 302 of file LinqObservableCollection.cs.
int Csla.LinqObservableCollection< T >.IndexOf | ( | T | item | ) |
Gets the positional index of the item.
item | Item to find. |
Definition at line 140 of file LinqObservableCollection.cs.
void Csla.LinqObservableCollection< T >.Insert | ( | int | index, |
object | value | ||
) |
Inserts item into specified position in list.
index | Location to insert item. |
value | Item to insert. |
Definition at line 312 of file LinqObservableCollection.cs.
void Csla.LinqObservableCollection< T >.Insert | ( | int | index, |
T | item | ||
) |
Inserts item into specified position in list.
index | Location to insert item. |
item | Item to insert. |
Definition at line 150 of file LinqObservableCollection.cs.
|
protectedvirtual |
Raises the CollectionChanged event.
e | EventArgs for event. |
Definition at line 111 of file LinqObservableCollection.cs.
void Csla.LinqObservableCollection< T >.Remove | ( | object | value | ) |
Removes specified item from the list.
value | Item to remove. |
Definition at line 330 of file LinqObservableCollection.cs.
bool Csla.LinqObservableCollection< T >.Remove | ( | T | item | ) |
Removes specified item from the list.
item | Item to remove. |
Definition at line 258 of file LinqObservableCollection.cs.
void Csla.LinqObservableCollection< T >.RemoveAt | ( | int | index | ) |
Removes item at specified index.
index | Index of item to remove. |
Definition at line 159 of file LinqObservableCollection.cs.
|
get |
Gets the number of items in the list.
Definition at line 233 of file LinqObservableCollection.cs.
|
get |
Gets a value indicating whether the source list has a fixed size.
Definition at line 321 of file LinqObservableCollection.cs.
|
get |
Gets a value indicating whether the source list is read-only.
Definition at line 242 of file LinqObservableCollection.cs.
|
get |
Gets a value indicating whether the source list is synchronized.
Definition at line 361 of file LinqObservableCollection.cs.
|
get |
Gets the query result object used to filter the view.
Definition at line 131 of file LinqObservableCollection.cs.
|
get |
Gets the source list (usually a BusinessListBase) object that contains/manages all data items.
Definition at line 122 of file LinqObservableCollection.cs.
|
get |
Gets the SyncRoot from the source list.
Definition at line 369 of file LinqObservableCollection.cs.
|
getset |
Gets or sets the value at the specified index.
index | Index location. |
Definition at line 169 of file LinqObservableCollection.cs.
System.Collections.Specialized.NotifyCollectionChangedEventHandler Csla.LinqObservableCollection< T >.CollectionChanged |
Event raised when the underlying source list is changed.
Definition at line 29 of file LinqObservableCollection.cs.