AGENT.PackageViewer.Command.DelegateCommand.CanExecute C# (CSharp) Méthode

CanExecute() public méthode

public CanExecute ( object parameter ) : bool
parameter object
Résultat bool
        public bool CanExecute(object parameter)
        {
            bool result = true;
            Func<object, bool> canExecuteHandler = this.canExecute;
            if (canExecuteHandler != null)
            {
                result = canExecuteHandler(parameter);
                return result;
            }

            Func<bool> canExecuteHandlerSimple = this.canExecuteSimple;
            if (canExecuteHandlerSimple != null)
            {
                result = canExecuteHandlerSimple();
            }

            return result;
        }

Same methods

DelegateCommand::CanExecute ( ) : bool