C# Class ExoModel.ModelEvent

Base class for classes that represent specific events with an object model.
Inheritance: System.EventArgs
Show file Open project: vc3/ExoModel Class Usage Examples

Private Properties

Property Type Description
Merge bool
ModelEvent System
Notify void

Protected Methods

Method Description
EnsureInstance ( ModelTransaction transaction, ModelInstance instance ) : ModelInstance

Verifies that the specified ModelInstance refers to a valid real instance and if not, uses the type and id information to look up the real instance.

OnMerge ( ModelEvent e ) : bool
OnNotify ( ) : void

Allows subclasses to perform event specific notification logic.

Private Methods

Method Description
Merge ( ModelEvent e ) : bool

Attempts to merge two model events into a single event.

ModelEvent ( ModelInstance instance ) : System

Creates a new ModelEvent for the specified ModelInstance.

Notify ( ) : void

Starts a new ModelEventScope, allows subclasses to perform event specific notifications by overriding OnNotify, and notifies the context that the event has occurred.

Method Details

EnsureInstance() protected method

Verifies that the specified ModelInstance refers to a valid real instance and if not, uses the type and id information to look up the real instance.
protected EnsureInstance ( ModelTransaction transaction, ModelInstance instance ) : ModelInstance
transaction ModelTransaction
instance ModelInstance
return ModelInstance

OnMerge() protected method

protected OnMerge ( ModelEvent e ) : bool
e ModelEvent
return bool

OnNotify() protected abstract method

Allows subclasses to perform event specific notification logic.
protected abstract OnNotify ( ) : void
return void