9using System.Collections.Generic;
10using System.Collections.Specialized;
29 Core.IReadOnlyBindingList
41 this.CollectionChanged += (o, e) =>
56 base.OnCollectionChanged(e);
61 private bool _isReadOnly =
true;
73 get {
return _isReadOnly; }
74 protected set { _isReadOnly = value; }
77 bool Core.IReadOnlyBindingList.IsReadOnly
90 base.SetLoadListMode(enabled);
95 #region MobileFormatter
106 base.OnGetState(info);
107 info.AddValue(
"Csla.Core.ReadOnlyBindingList._isReadOnly", _isReadOnly);
119 base.OnSetState(info);
120 _isReadOnly = info.GetValue<
bool>(
"Csla.Core.ReadOnlyBindingList._isReadOnly");
138 base.OnSetChildren(info, formatter);
Extends ObservableCollection with behaviors required by CSLA .NET collections.
bool AllowRemove
Gets or sets a value indicating whether data binding can automatically remove items from this collect...
bool AllowEdit
Gets or sets a value indicating whether data binding can automatically edit items in this collection.
bool AllowNew
Gets or sets a value indicating whether data binding can automatically add new items to this collecti...
A readonly version of ObservableBindingList.
override void SetLoadListMode(bool enabled)
Sets the LoadListMode for the collection
override void OnSetChildren(Csla.Serialization.Mobile.SerializationInfo info, Csla.Serialization.Mobile.MobileFormatter formatter)
Override this method to retrieve your child object references from the MobileFormatter serialzation s...
override void OnGetState(Csla.Serialization.Mobile.SerializationInfo info)
Override this method to insert your field values into the MobileFormatter serialzation stream.
ReadOnlyObservableBindingList()
Creates an instance of the type.
bool IsReadOnly
Gets or sets a value indicating whether the list is readonly.
override void OnCollectionChanged(NotifyCollectionChangedEventArgs e)
Method invoked when collection is changed.
override void OnSetState(Csla.Serialization.Mobile.SerializationInfo info)
Override this method to retrieve your field values from the MobileFormatter serialzation stream.
A strongly-typed resource class, for looking up localized strings, etc.
static string ChangeReadOnlyListInvalid
Looks up a localized string similar to Can not change a read-only list or collection.
Object containing the serialization data for a specific object.
@ Serializable
Prevents updating or inserting until the transaction is complete.