Exemple #1
0
        /// <summary>
        /// Raises the DialogBoxLauncherClick event.
        /// </summary>
        /// <param name="e">An EventArgs containing the event data.</param>
        internal protected virtual void OnDialogBoxLauncherClick(EventArgs e)
        {
            // Perform processing that is common to any action that would dismiss
            // any popup controls such as the showing minimized group popup
            Ribbon?.ActionOccured();

            DialogBoxLauncherClick?.Invoke(this, e);
        }
Exemple #2
0
        /// <summary>
        /// Raises the Click event.
        /// </summary>
        /// <param name="e">An EventArgs containing the event data.</param>
        protected virtual void OnClick(EventArgs e)
        {
            // Perform processing that is common to any action that would dismiss
            // any popup controls such as the showing minimized group popup
            Ribbon?.ActionOccured();

            Click?.Invoke(this, e);

            // Clicking the button should execute the associated command
            KryptonCommand?.PerformExecute();
        }
        /// <summary>
        /// Raises the Click event.
        /// </summary>
        /// <param name="e">An EventArgs containing the event data.</param>
        protected virtual void OnClick(EventArgs e)
        {
            // Perform processing that is common to any action that would dismiss
            // any popup controls such as the showing minimized group popup
            if (Ribbon != null)
            {
                Ribbon.ActionOccured();
            }

            if (Click != null)
            {
                Click(this, e);
            }

            // Clicking the button should execute the associated command
            if (KryptonCommand != null)
            {
                KryptonCommand.PerformExecute();
            }
        }