Esempio n. 1
0
        /// <include file='doc\ToolStripComboButton.uex' path='docs/doc[@for="ToolStripSplitButton.OnButtonDoubleClick"]/*' />
        /// <devdoc>
        /// called when the button portion of a split button is double clicked
        /// if there is a default item, this will route the double click to the default item
        /// </devdoc>
        public virtual void OnButtonDoubleClick(System.EventArgs e)
        {
            if (DefaultItem != null)
            {
                DefaultItem.FireEvent(ToolStripItemEventType.DoubleClick);
            }

            EventHandler handler = (EventHandler)Events[EventButtonDoubleClick];

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