Skip to content
Jean-Philippe Bruyère edited this page Oct 26, 2021 · 1 revision

helper class to bind in one step icon, caption, action, and validity tests to a controls

namespace: Crow

Inheritance Hierarchy

  • ActionCommand

Syntax

public class ActionCommand : Command

Constructors

prototype description
ActionCommand () __
ActionCommand (Action _executeAction) Initializes a new instance of Command with the action passed as argument.
ActionCommand (Action< object > _executeAction) Initializes a new instance of Command with the action passed as argument.
ActionCommand (string caption, Action executeAction, string icon=null, bool _canExecute=true) __
ActionCommand (string caption, Action< object > executeAction, string icon=null, bool _canExecute=true) __
ActionCommand (ICommandHost _host, string caption, Action executeAction, string icon=null, KeyBinding _keyBinding=null, Binding< bool > _canExecuteBinding=null) __
ActionCommand (ICommandHost _host, string caption, Action< object > executeAction, string icon=null, KeyBinding _keyBinding=null, Binding< bool > _canExecuteBinding=null) __
ActionCommand (Action< T > _executeAction) __
ActionCommand (string caption, Action< T > executeAction, string icon=null, bool _canExecute=true) __

Properties

name description

Methods

prototype description
void Execute(object sender=null) trigger the execution of the command

Events

name description
Clone this wiki locally