C# 클래스 Tortuga.Anchor.Modeling.Internals.ChangeTrackingPropertyBag

Property bag with basic change tracking capabilities.
상속: PropertyBagBase
파일 보기 프로젝트 열기: docevaad/Anchor

공개 메소드들

메소드 설명
AcceptChanges ( bool recursive ) : void

Marks all fields as unchanged by storing them in the original values collection.

ChangeTrackingPropertyBag ( object owner ) : System

Property bag with basic change tracking capabilities.

ChangedProperties ( ) : IReadOnlyList

List of changed properties.

GetPreviousValue ( string propertyName ) : object

Gets the previous value for the indicated property.

GetValue ( [ propertyName = null ) : object

Implementors need to override this to return the indicated value.

IsDefined ( [ propertyName = null ) : bool

This property indicates whether or not the associated property was created.

RejectChanges ( bool recursive ) : void

Replaces the current values collection with the original values collection.

Set ( object value, PropertySetModes mode, string propertyName, object &oldValue ) : bool

Implementors need to override this to save the indicated value.

This will create the property if it doesn't already exist

비공개 메소드들

메소드 설명
IsChangedGraph ( ) : bool

Determines whether any objects have unsaved changed in the graph.

OnChildIsChangedPropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
UpdateChangeTrackingEventHandlers ( object oldValue, object newValue ) : void

메소드 상세

AcceptChanges() 공개 메소드

Marks all fields as unchanged by storing them in the original values collection.
public AcceptChanges ( bool recursive ) : void
recursive bool if set to true [recursive].
리턴 void

ChangeTrackingPropertyBag() 공개 메소드

Property bag with basic change tracking capabilities.
public ChangeTrackingPropertyBag ( object owner ) : System
owner object Owning model, used to fetch metadata
리턴 System

ChangedProperties() 공개 메소드

List of changed properties.
public ChangedProperties ( ) : IReadOnlyList
리턴 IReadOnlyList

GetPreviousValue() 공개 메소드

Gets the previous value for the indicated property.
public GetPreviousValue ( string propertyName ) : object
propertyName string /// Name of the property. ///
리턴 object

GetValue() 공개 메소드

Implementors need to override this to return the indicated value.
propertyName;propertyName is null propertyName is empty.;propertyName
public GetValue ( [ propertyName = null ) : object
propertyName [ Name of the property to fetch.
리턴 object

IsDefined() 공개 메소드

This property indicates whether or not the associated property was created.
propertyName;propertyName is null propertyName is empty.;propertyName
public IsDefined ( [ propertyName = null ) : bool
propertyName [
리턴 bool

RejectChanges() 공개 메소드

Replaces the current values collection with the original values collection.
public RejectChanges ( bool recursive ) : void
recursive bool if set to true [recursive].
리턴 void

Set() 공개 메소드

Implementors need to override this to save the indicated value.
This will create the property if it doesn't already exist
propertyName;propertyName is null propertyName is empty.;propertyName
public Set ( object value, PropertySetModes mode, string propertyName, object &oldValue ) : bool
value object The value to be saved. A null will set the value to null.
mode PropertySetModes Indicates special handling for the action.
propertyName string Name of property to update
oldValue object The previously stored value. If the property was uninitialized, this will return NotSet.Value
리턴 bool