Пример #1
0
        /// <summary>
        ///     Triggers the <see cref="Invoked"/> event.
        /// </summary>
        /// <returns>True if the command was successful, false if the command was cancelled.</returns>
        protected virtual bool OnInvoked(UICommandInvokedArgs args)
        {
            _args = args;
            var handler = Invoked;

            if (handler != null)
            {
                handler(this, args);
            }

            return(!args.Cancelled);
        }
Пример #2
0
 private new void OnInvoked(UICommandInvokedArgs args)
 {
     base.OnInvoked(args);
 }
Пример #3
0
        /// <summary>
        ///     Triggers the <see cref="Invoked"/> event.
        /// </summary>
        /// <returns>True if the command was successful, false if the command was cancelled.</returns>
        protected virtual bool OnInvoked(UICommandInvokedArgs args)
        {
            _args = args;
            var handler = Invoked;
            if (handler != null) handler(this, args);

            return !args.Cancelled;
        }