Esempio n. 1
0
        /// <summary>
        ///     Handles a buttonClicked click within the MessagePanel control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="MessageResultEventArgs" /> instance containing the event data.</param>
        private void panel_ButtonClicked(object sender, MessageResultEventArgs e)
        {
            this.InvokeCommands(e.Button, e.Result);

            if (!e.Button.CloseOnClick)
            {
                return;
            }

            this.ClearPanel();
            if (this.window != null)
            {
                this.obtainedResultBeforeClosing = true;
                this.window.Close();
                this.window = null;
                this.obtainedResultBeforeClosing = false;
            }
        }
Esempio n. 2
0
        /// <summary>
        ///     Handles a buttonClicked click within the MessagePanel control.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="MessageResultEventArgs" /> instance containing the event data.</param>
        private void panel_ButtonClicked(object sender, MessageResultEventArgs e)
        {
            this.InvokeCommands(e.Button, e.Result);

            if (!e.Button.CloseOnClick)
            {
                return;
            }

            this.ClearPanel();
            if (this.window != null)
            {
                this.obtainedResultBeforeClosing = true;
                this.window.Close();
                this.window = null;
                this.obtainedResultBeforeClosing = false;
            }
        }