23 [System.Diagnostics.CodeAnalysis.SuppressMessage(
"Microsoft.Naming",
24 "CA1710:IdentifiersShouldHaveCorrectSuffix")]
38 private bool _isReadOnly =
true;
60 get {
return _isReadOnly; }
61 set { _isReadOnly = value; }
64 bool Core.IReadOnlyBindingList.IsReadOnly
77 base.SetLoadListMode(enabled);
85 this.RaiseListChangedEvents =
false;
89 this.RaiseListChangedEvents =
true;
99 bool oldValue = AllowRemove;
102 AllowRemove = oldValue;
111#if NETFX_CORE || (ANDROID || IOS)
123 return base.AddNewCore();
138 base.InsertItem(index, item);
153 bool oldValue = AllowRemove;
155 base.RemoveItem(index);
156 AllowRemove = oldValue;
169 protected override void SetItem(
int index, C item)
173 base.SetItem(index, item);
192 foreach (C child
in this)
195 if (busy !=
null && busy.
IsBusy)
205#region MobileFormatter
216 base.OnGetState(info);
217 info.AddValue(
"Csla.Core.ReadOnlyBindingList._isReadOnly", _isReadOnly);
229 base.OnSetState(info);
230 _isReadOnly = info.GetValue<
bool>(
"Csla.Core.ReadOnlyBindingList._isReadOnly");
248 base.OnSetChildren(info, formatter);
Extends BindingList of T by adding extra behaviors.
A readonly version of BindingList(Of T)
override void InsertItem(int index, C item)
Prevents insertion of items into the collection.
override object AddNewCore()
Prevents insertion of items into the collection.
override void OnSetState(Csla.Serialization.Mobile.SerializationInfo info)
Override this method to retrieve your field values from the MobileFormatter serialzation stream.
override void SetItem(int index, C item)
Replaces the item at the specified index with the specified item if the collection is not in readonly...
override void OnGetState(Csla.Serialization.Mobile.SerializationInfo info)
Override this method to insert your field values into the MobileFormatter serialzation stream.
ReadOnlyBindingList()
Creates an instance of the object.
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 RemoveItem(int index)
Removes the item at the specified index if the collection is not in readonly mode.
override void SetLoadListMode(bool enabled)
Sets the LoadListMode for the collection
override bool IsBusy
Gets a value indicating whether this object or its child objects are busy.
override void ClearItems()
Prevents clearing the collection.
bool IsReadOnly
Gets or sets a value indicating whether the list is readonly.
virtual bool IsReadOnlyCore
Gets or sets a value indicating whether the list is readonly.
A strongly-typed resource class, for looking up localized strings, etc.
static string RemoveInvalidException
Looks up a localized string similar to Remove is an invalid operation.
static string InsertInvalidException
Looks up a localized string similar to Insert is an invalid operation.
static string ChangeInvalidException
Looks up a localized string similar to Changing an element is an invalid operation.
static string ClearInvalidException
Looks up a localized string similar to Clear is an invalid operation.
Object containing the serialization data for a specific object.
This is the core interface implemented by all CSLA .NET base classes.
int Identity
Gets a value representing this object instance's unique identity value within the business object gra...
Interface defining an object that notifies when it is busy executing an asynchronous operation.
bool IsBusy
Gets a value indicating whether the object, or any of the object's child objects, are busy running an...
@ Serializable
Prevents updating or inserting until the transaction is complete.