ComponentFactory.Krypton.Ribbon.ViewDrawRibbonQATButton.OnClick C# (CSharp) Method

OnClick() private method

private OnClick ( object sender, MouseEventArgs e ) : void
sender object
e MouseEventArgs
return void
        private void OnClick(object sender, MouseEventArgs e)
        {
            // We do not operate the qat button at design time
            if (!_ribbon.InDesignMode)
            {
                Form ownerForm = _ribbon.FindForm();

                // Ensure the form we are inside is active
                if (ownerForm != null)
                    ownerForm.Activate();

                // Inform quick access toolbar button it has been clicked
                _qatButton.PerformClick();
            }
        }