Class CreateOperation
undoable operation for adding new entity objects.
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: TimeCockpit.Data.UndoRedo
Assembly: TimeCockpit.Data.dll
Syntax
public class CreateOperation : Operation
Constructors
CreateOperation(EntityObject)
Initializes a new instance of the CreateOperation class.
Declaration
public CreateOperation(EntityObject createdObject)
Parameters
Type | Name | Description |
---|---|---|
EntityObject | createdObject | the entity object that was created. |
Properties
CreatedObject
Gets the entity object that was added.
Declaration
public EntityObject CreatedObject { get; }
Property Value
Type | Description |
---|---|
EntityObject |
Methods
Redo(ChangeTracker)
readds the object to the change tracker.
Declaration
public override void Redo(ChangeTracker changeTracker)
Parameters
Type | Name | Description |
---|---|---|
ChangeTracker | changeTracker | the changetracker governing the operation. |
Overrides
Undo(ChangeTracker)
called to undo adding an entity object. Removes the object from the change tracker.
Declaration
public override void Undo(ChangeTracker changeTracker)
Parameters
Type | Name | Description |
---|---|---|
ChangeTracker | changeTracker | the changetracker governing the operation. |