Esempio n. 1
0
        /// <summary>
        /// コマンドの実行可能状態を調べます。
        /// </summary>
        public bool CanExecute(object parameter = null)
        {
            if (this.canExecute == null)
            {
                return(true);
            }

            var e = new CanExecuteRelayEventArgs(this, parameter);

            this.canExecute(this, e);
            return(e.CanExecute);
        }
Esempio n. 2
0
        /// <summary>
        /// コマンドの実行可能状態を調べます。
        /// </summary>
        public bool CanExecute()
        {
            if (this.canExecute == null)
            {
                return(true);
            }

            var e = new CanExecuteRelayEventArgs(this);

            this.canExecute(this, e);
            return(e.CanExecute);
        }
Esempio n. 3
0
        /// <summary>
        /// コマンドの実行可能状態を調べます。
        /// </summary>
        public bool CanExecute()
        {
            if (this.canExecute == null)
            {
                return true;
            }

            var e = new CanExecuteRelayEventArgs(this);
            this.canExecute(this, e);
            return e.CanExecute;
        }