ModelChangedEventArgs

StockSharp.Xaml.Diagram.GXDiagram.Model

This class represents a change to a model.

Inherits: PropertyChangedEventArgs

Implements: IUndoableEdit

Constructors

ModelChangedEventArgs()

The empty/default constructor produces an EventArgs whose properties still need to be initialized.

ModelChangedEventArgs(string, object, object, object)

This constructor initializes the mostly commonly used properties.

pname
the PropertyName property
data
the Data property
oldval
the OldValue property
newval
the NewValue property
ModelChangedEventArgs(ModelChangedEventArgs)

This is basically a "copy constructor", making a copy of the given ModelChangedEventArgs.

e

Properties

Change : ModelChange

Gets or sets the kind of change that this represents.

Data : object

Gets or sets the data object, part of the model, that was modified.

Model : IDiagramModel

Gets or sets the IDiagramModel that has been modified.

NewParam : object

Gets or sets an optional value associated with the new value.

NewValue : object

Gets or sets the next or current value that the property has.

OldParam : object

Gets or sets an optional value associated with the old value.

OldValue : object

Gets or sets the previous or old value that the property had.

Methods

CanRedo() : bool

This predicate returns true if you can call Redo.

CanUndo() : bool

This predicate returns true if you can call Undo.

Clear()

Forget any references that this object may have.

GetParam(bool) : object

This is a convenient method to get the right parameter value, depending on the value of .

undo

Returns: either OldParam or NewParam

GetValue(bool) : object

This is a convenient method to get the right value, depending on the value of .

undo

Returns: either OldValue or NewValue

Redo()

Re-perform the document change after an Undo by calling Boolean).

ToString() : string

Produce a human-readable description of the change to the model.

Undo()

Reverse the effects of this document change by calling Boolean).