Enum ChangeType
- Namespace
- Northwoods.Go.Models
- Assembly
- Northwoods.GoDiagram.WinForms.dll
This enumeration specifies possible values for Change.
public enum ChangeType
Fields
Insert = 2
For inserting into collections.
The modified object is given by Object. Use the optional PropertyName to distinguish between different collections on the object. Use the NewValue property to indicate the value that was inserted. Use the optional NewParam property to indicate where or how, such as an array index or dictionary key.
Property = 1
For simple property changes.
The name of the property is given by PropertyName. The modified object is given by Object. Use the OldValue and NewValue properties for the previous and next property values.
For model changes, the ModelChange may be non-empty, indicating a structural change to the model.
Remove = 3
For removing from collections.
The modified object is given by Object. Use the optional PropertyName to distinguish between different collections on the object. Use the OldValue property to indicate the value that was removed. Use the optional OldParam property to indicate where or how, such as an array index or dictionary key.
Transaction = 0
For informational events, such as transactions and undo/redo operations.
The Object refers the the Transaction affected, if any. The PropertyName distinguishes the different transaction or undo or redo stages. The OldValue may provide the transaction name, if available, as given to CommitTransaction(string).