/// <summary> Handle the ClientMessage event. </summary>
        /// <param name="e"> The event data. <see cref="XrwClientMessageEvent"/> </param>
        /// <remarks> Set XawClientMessageEvent. Set result to nonzero to stop further event processing. </remarks>
        public virtual void OnWmClose(XrwClientMessageEvent e)
        {
            WmShellCloseDelegate wmShellClose = WmShellClose;

            if (wmShellClose != null)
            {
                wmShellClose(this, e);
            }
        }
示例#2
0
        /// <summary> Handle the ClientMessage event. </summary>
        /// <param name="e"> The event data. <see cref="XrwClientMessageEvent"/> </param>
        /// <remarks> Set XawClientMessageEvent. Set result to nonzero to stop further event processing. </remarks>
        public override void OnWmClose(XrwClientMessageEvent e)
        {
            base.OnWmClose(e);
            this.DefaultClose();

            // Stop event processing here!
            e.Result = 1;

            _result = XrwDialogShell.Result.Cancel;
            this.OnEnd(_result);
        }