AGENT.PackageViewer.Command.DelegateCommand.DelegateCommand C# (CSharp) 메소드

DelegateCommand() 공개 메소드

public DelegateCommand ( System.Action executeAction, Func canExecute ) : System
executeAction System.Action
canExecute Func
리턴 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