3 using System.Collections.Generic;
5 using SiliconStudio.ActionStack;
6 using SiliconStudio.Presentation.ViewModel;
7 using SiliconStudio.Presentation.ViewModel.ActionStack;
9 namespace SiliconStudio.Presentation.
Commands
14 private object parameter;
18 : base(
"Executing " + command.Name, dirtiables)
20 this.command = command;
21 this.parameter = parameter;
22 this.undoToken = undoToken;
36 command.UndoCommand(parameter, undoToken);
41 command.ExecuteCommand(parameter,
false);
CommandActionItem(CancellableCommand command, object parameter, UndoToken undoToken, IEnumerable< IDirtiableViewModel > dirtiables)
override void RedoAction()
Invoked by Redo after setting IsDone to true.
A command that supports undo/redo
An abstact class that inherits from ActionItem and can be used to manage actions related to an IDirti...
override void UndoAction()
Invoked by Undo after setting IsDone to true.
override void FreezeMembers()
Invoked by Freeze before setting IsFrozen to true.
Represents a token that stores an unique identifier and an object. This token should be generated by ...