C# Class ExoModel.ModelReferenceChangeEvent

Represents a change to an reference property in the model.
Inheritance: ModelEvent, ITransactedModelEvent
Show file Open project: vc3/ExoModel

Private Properties

Property Type Description

Public Methods

Method Description
ITransactedModelEvent ( ModelTransaction transaction ) : void

Sets the reference property to the new value.

ModelReferenceChangeEvent ( ModelInstance instance, ModelReferenceProperty property, ModelInstance oldValue, ModelInstance newValue )
ToString ( ) : string

Protected Methods

Method Description
OnMerge ( ModelEvent e ) : bool

Merges a ModelValueChangeEvent into the current event.

OnNotify ( ) : void

Method Details

ITransactedModelEvent() public method

Sets the reference property to the new value.
public ITransactedModelEvent ( ModelTransaction transaction ) : void
transaction ModelTransaction
return void

ModelReferenceChangeEvent() public method

public ModelReferenceChangeEvent ( ModelInstance instance, ModelReferenceProperty property, ModelInstance oldValue, ModelInstance newValue )
instance ModelInstance
property ModelReferenceProperty
oldValue ModelInstance
newValue ModelInstance

OnMerge() protected method

Merges a ModelValueChangeEvent into the current event.
protected OnMerge ( ModelEvent e ) : bool
e ModelEvent
return bool

OnNotify() protected method

protected OnNotify ( ) : void
return void

ToString() public method

public ToString ( ) : string
return string