Class CompositeAsyncStateCommand
Represents a composite async command.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.Windows.Diagrams.Core.dll
Syntax
public class CompositeAsyncStateCommand : CompositeCommand, IAsyncStateCommand, ICommand
Constructors
CompositeAsyncStateCommand(String, Action<Object>, Action<Object>, Predicate<Object>)
Initializes a new instance of the CompositeAsyncStateCommand class.
Declaration
public CompositeAsyncStateCommand(string name, Action<object> execute = null, Action<object> undo = null, Predicate<object> canExecute = null)
Parameters
System.String
name
The name or title of the composite action. |
System.Action<System.Object>
execute
The execute action. |
System.Action<System.Object>
undo
The undo action. |
System.Predicate<System.Object>
canExecute
The CanExecute action. |
Properties
IsCommited
Gets a value indicating whether this instance is committed.
Declaration
public bool IsCommited { get; }
Property Value
System.Boolean
|
Implements
Methods
AddCommand(ICommand, Object)
Adds a command to the composite command.
Declaration
public void AddCommand(ICommand command, object state)
Parameters
ICommand
command
|
System.Object
state
|
Complete(Boolean, Object)
Completes the execution.
Declaration
public void Complete(bool commit, object state)
Parameters
System.Boolean
commit
True, if the command should be committed. |
System.Object
state
The state. |
Implements
Execute(Object)
Executes the specified state.
Declaration
public override void Execute(object state = null)
Parameters
System.Object
state
The state associated with the execution. |
Overrides
Implements
InsertCommand(Int32, ICommand, Object)
Inserts a command into the composite command at specific index.
Declaration
public void InsertCommand(int index, ICommand command, object state)
Parameters
System.Int32
index
|
ICommand
command
|
System.Object
state
|
Undo(Object)
Unwinds an undoable action.
Declaration
public override void Undo(object state = null)
Parameters
System.Object
state
|
Overrides
Implements
Events
Completed
Occurs when the command is completed.
Declaration
public event EventHandler Completed
Event Type
System.EventHandler
|