C# Class Zetbox.Client.WPF.Commands.RelayCommand

Adapted from http://msdn.microsoft.com/en-us/magazine/dd419663.aspx#id0090030 , "Relaying Command Logic"
Inheritance: ICommand
Exibir arquivo Open project: daszat/zetbox

Public Methods

Method Description
RelayCommand ( Action execute ) : System
RelayCommand ( Action execute, Predicate canExecute ) : System

Private Methods

Method Description
CanExecute ( object parameter ) : bool
Execute ( object parameter ) : void

Method Details

RelayCommand() public method

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

RelayCommand() public method

public RelayCommand ( Action execute, Predicate canExecute ) : System
execute Action
canExecute Predicate
return System