コード例 #1
0
            /// <summary>
            /// Invoked upon receiving a 'Cancel' input
            /// </summary>
            /// <param name="e"></param>
            void OnCancelEvent(Link.CancelEvent e)
            {
                if (!_IsAcceptingInput)
                {
                    return;
                }

                //Trace.Script("Cancel", this);

                // If there's no active link or the current link is not active,
                // apply cancel to this interface
                if (!this.CurrentLink || (this.CurrentLink && !this.CurrentLink.Active))
                {
                    this.OnInterfaceCancel();
                }


                // If there is a link active, redirect output
                if (RedirectInput <Link.CancelEvent>(e))
                {
                    return;
                }

                //Trace.Script("Active = " + Active + ", CurrentLink = " + CurrentLink, this);
            }
コード例 #2
0
 void OnCancelEvent(Link.CancelEvent e)
 {
     this.Activate();
 }