AGENT.PackageViewer.Command.DelegateCommand.DelegateCommand C# (CSharp) Method

DelegateCommand() public method

public DelegateCommand ( System.Action executeAction, Func canExecute ) : System
executeAction System.Action
canExecute Func
return System
        public DelegateCommand(Action executeAction, Func<bool> canExecute)
        {
            if (executeAction == null)
            {
                throw new ArgumentNullException("executeAction");
            }
            this.executeActionSimple = executeAction;
            this.canExecuteSimple = canExecute;
        }

Same methods

DelegateCommand::DelegateCommand ( System.Action executeAction ) : System
DelegateCommand::DelegateCommand ( Action executeAction ) : System
DelegateCommand::DelegateCommand ( Action executeAction, bool>.Func canExecute ) : System