C# Class GenericCommandDemo.ActionCommand

Inheritance: ICommand
ファイルを表示 Open project: markrendle/FunctionalAlchemy

Public Methods

Method Description
ActionCommand ( System.Action execute ) : System
ActionCommand ( System.Action execute, Func canExecute ) : System
ActionCommand ( Action execute ) : System
ActionCommand ( Action execute, bool>.Func canExecute ) : System
CanExecute ( object parameter ) : bool
Execute ( object parameter ) : void

Method Details

ActionCommand() public method

public ActionCommand ( System.Action execute ) : System
execute System.Action
return System

ActionCommand() public method

public ActionCommand ( System.Action execute, Func canExecute ) : System
execute System.Action
canExecute Func
return System

ActionCommand() public method

public ActionCommand ( Action execute ) : System
execute Action
return System

ActionCommand() public method

public ActionCommand ( Action execute, bool>.Func canExecute ) : System
execute Action
canExecute bool>.Func
return System

CanExecute() public method

public CanExecute ( object parameter ) : bool
parameter object
return bool

Execute() public method

public Execute ( object parameter ) : void
parameter object
return void