C# Class WPF.JoshSmith.Input.CommandGroup

Inheritance: ICommand
Exibir arquivo Open project: Warewolf-ESB/Warewolf

Public Methods

Method Description
CanExecute ( object parameter ) : bool

Returns true if all of the commands in the group can execute.

CommandGroup ( ) : System

Initializes a new instance.

Execute ( object parameter ) : void

Executes each command in the group sequentially.

Protected Methods

Method Description
OnCanExecuteChanged ( ) : void

Subclasses can invoke this method to raise the CanExecuteChanged event.

Private Methods

Method Description
OnChildCommandCanExecuteChanged ( object sender, EventArgs e ) : void
OnCommandsCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void

Method Details

CanExecute() public method

Returns true if all of the commands in the group can execute.
public CanExecute ( object parameter ) : bool
parameter object
return bool

CommandGroup() public method

Initializes a new instance.
public CommandGroup ( ) : System
return System

Execute() public method

Executes each command in the group sequentially.
public Execute ( object parameter ) : void
parameter object
return void

OnCanExecuteChanged() protected method

Subclasses can invoke this method to raise the CanExecuteChanged event.
protected OnCanExecuteChanged ( ) : void
return void