CSLA.NET 5.4.2
CSLA .NET is a software development framework that helps you build a reusable, maintainable object-oriented business layer for your app.
Csla.Core.UndoableBase Class Reference

Implements n-level undo capabilities as described in Chapters 2 and 3. More...

Inheritance diagram for Csla.Core.UndoableBase:
Csla.Core.BindableBase Csla.Core.IUndoableObject Csla.Core.MobileObject Csla.Serialization.Mobile.IMobileObject Csla.Core.BusinessBase Csla.BusinessBase< T > Csla.Validation.BusinessBase< T >

Protected Member Functions

 UndoableBase ()
 Creates an instance of the object. More...
 
virtual void CopyingState ()
 This method is invoked before the CopyState operation begins. More...
 
virtual void CopyStateComplete ()
 This method is invoked after the CopyState operation is complete. More...
 
virtual void UndoChangesComplete ()
 This method is invoked before the UndoChanges operation begins. More...
 
virtual void UndoingChanges ()
 This method is invoked after the UndoChanges operation is complete. More...
 
virtual void AcceptingChanges ()
 This method is invoked before the AcceptChanges operation begins. More...
 
virtual void AcceptChangesComplete ()
 This method is invoked after the AcceptChanges operation is complete. More...
 
override void OnGetState (SerializationInfo info, StateMode mode)
 Override this method to insert your field values into the MobileFormatter serialzation stream. More...
 
override void OnSetState (SerializationInfo info, StateMode mode)
 Override this method to retrieve your field values from the MobileFormatter serialzation stream. More...
 
- Protected Member Functions inherited from Csla.Core.BindableBase
 BindableBase ()
 Creates an instance of the object. More...
 
virtual bool ShouldHandlerSerialize (PropertyChangedEventHandler value)
 Override this method to change the default logic for determining if the event handler should be serialized More...
 
virtual void OnPropertyChanged (string propertyName)
 Call this method to raise the PropertyChanged event for a specific property. More...
 
virtual void OnMetaPropertyChanged (string propertyName)
 
virtual void OnPropertyChanged (IPropertyInfo propertyInfo)
 Call this method to raise the PropertyChanged event for a specific property. More...
 
virtual void OnIsDirtyChanged ()
 Call this method to raise the PropertyChanged event for all object properties. More...
 
virtual void OnUnknownPropertyChanged ()
 Call this method to raise the PropertyChanged event for all object properties. More...
 
virtual void OnIsDirtyChanging ()
 Call this method to raise the PropertyChanging event for all object properties. More...
 
virtual void OnUnknownPropertyChanging ()
 Call this method to raise the PropertyChanging event for all object properties. More...
 
virtual void OnPropertyChanging (string propertyName)
 Call this method to raise the PropertyChanging event for a specific property. More...
 
virtual void OnPropertyChanging (IPropertyInfo propertyInfo)
 Call this method to raise the PropertyChanging event for a specific property. More...
 
virtual bool ShouldHandlerSerialize (PropertyChangingEventHandler value)
 Override this method to change the default logic for determining if the event handler should be serialized More...
 
- Protected Member Functions inherited from Csla.Core.MobileObject
virtual void OnGetChildren (SerializationInfo info, MobileFormatter formatter)
 Override this method to insert your child object references into the MobileFormatter serialzation stream. More...
 
virtual void OnSetChildren (SerializationInfo info, MobileFormatter formatter)
 Override this method to retrieve your child object references from the MobileFormatter serialzation stream. More...
 

Properties

bool BindingEdit [getset]
 Gets or sets a value indicating whether n-level undo was invoked through IEditableObject. More...
 
int EditLevel [get]
 Returns the current edit level of the object. More...
 
- Properties inherited from Csla.Core.BindableBase
PropertyChangedEventHandler PropertyChanged
 Implements a serialization-safe PropertyChanged event. More...
 
PropertyChangingEventHandler PropertyChanging
 Implements a serialization-safe PropertyChanging event. More...
 
- Properties inherited from Csla.Core.IUndoableObject
int EditLevel [get]
 Gets the current edit level of the object. More...
 

Additional Inherited Members

Detailed Description

Implements n-level undo capabilities as described in Chapters 2 and 3.

Definition at line 26 of file UndoableBase.cs.

Constructor & Destructor Documentation

◆ UndoableBase()

Csla.Core.UndoableBase.UndoableBase ( )
protected

Creates an instance of the object.

Definition at line 38 of file UndoableBase.cs.

Member Function Documentation

◆ AcceptChangesComplete()

virtual void Csla.Core.UndoableBase.AcceptChangesComplete ( )
protectedvirtual

This method is invoked after the AcceptChanges operation is complete.

Reimplemented in Csla.Core.BusinessBase.

Definition at line 301 of file UndoableBase.cs.

◆ AcceptingChanges()

virtual void Csla.Core.UndoableBase.AcceptingChanges ( )
protectedvirtual

This method is invoked before the AcceptChanges operation begins.

Definition at line 292 of file UndoableBase.cs.

◆ CopyingState()

virtual void Csla.Core.UndoableBase.CopyingState ( )
protectedvirtual

This method is invoked before the CopyState operation begins.

Definition at line 98 of file UndoableBase.cs.

◆ CopyStateComplete()

virtual void Csla.Core.UndoableBase.CopyStateComplete ( )
protectedvirtual

This method is invoked after the CopyState operation is complete.

Definition at line 107 of file UndoableBase.cs.

◆ OnGetState()

override void Csla.Core.UndoableBase.OnGetState ( SerializationInfo  info,
StateMode  mode 
)
protectedvirtual

Override this method to insert your field values into the MobileFormatter serialzation stream.

Parameters
infoObject containing the data to serialize.
modeThe StateMode indicating why this method was invoked.

Reimplemented from Csla.Core.MobileObject.

Definition at line 409 of file UndoableBase.cs.

◆ OnSetState()

override void Csla.Core.UndoableBase.OnSetState ( SerializationInfo  info,
StateMode  mode 
)
protectedvirtual

Override this method to retrieve your field values from the MobileFormatter serialzation stream.

Parameters
infoObject containing the data to serialize.
modeThe StateMode indicating why this method was invoked.

Reimplemented from Csla.Core.MobileObject.

Definition at line 433 of file UndoableBase.cs.

◆ UndoChangesComplete()

virtual void Csla.Core.UndoableBase.UndoChangesComplete ( )
protectedvirtual

This method is invoked before the UndoChanges operation begins.

Reimplemented in Csla.Core.BusinessBase.

Definition at line 185 of file UndoableBase.cs.

◆ UndoingChanges()

virtual void Csla.Core.UndoableBase.UndoingChanges ( )
protectedvirtual

This method is invoked after the UndoChanges operation is complete.

Definition at line 194 of file UndoableBase.cs.

Property Documentation

◆ BindingEdit

bool Csla.Core.UndoableBase.BindingEdit
getsetprotected

Gets or sets a value indicating whether n-level undo was invoked through IEditableObject.

FOR INTERNAL CSLA .NET USE ONLY!

Definition at line 49 of file UndoableBase.cs.

◆ EditLevel

int Csla.Core.UndoableBase.EditLevel
getprotected

Returns the current edit level of the object.

Definition at line 70 of file UndoableBase.cs.