Class AsyncStateCommand
Represents an async state command.
Inherited Members
Namespace: Telerik.Windows.Diagrams.Core
Assembly: Telerik.WinControls.RadDiagram.dll
Syntax
public class AsyncStateCommand : UndoableDelegateCommand, IAsyncStateCommand, ICommand
Constructors
AsyncStateCommand(String, Action<Object>, Action<Object>, Predicate<Object>)
Initializes a new instance of the AsyncStateCommand class.
Declaration
public AsyncStateCommand(string name, Action<object> execute, Action<object> undo = null, Predicate<object> canExecute = null)
Parameters
System.String
name
The name or title of the command. |
System.Action<System.Object>
execute
The redo or execute method. |
System.Action<System.Object>
undo
The undo or rollback method. |
System.Predicate<System.Object>
canExecute
The method returning whether the command can be executed. |
Properties
IsCommited
Gets a value indicating whether this instance is committed.
Declaration
public bool IsCommited { get; }
Property Value
System.Boolean
|
Implements
Methods
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 an undoable action.
Declaration
public override void Execute(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
|