Esempio n. 1
0
        private bool m_recursionProtection = false;         // FWNX-262
#endif

        /// <summary>
        /// Raises the <see cref="E:System.Windows.Forms.Control.Enter"/> event.
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
        protected override void OnEnter(EventArgs e)
        {
#if __MonoCS__
            if (m_recursionProtection)             // FWNX-262
            {
                return;
            }
            m_recursionProtection = true;
#endif

            m_bvMatches.SelectedRowHighlighting = XmlBrowseViewBase.SelectionHighlighting.border;
            base.OnEnter(e);
            m_bvMatches.Select();

#if __MonoCS__
            m_recursionProtection = false;
#endif
        }
Esempio n. 2
0
        private bool m_recursionProtection = false;         // FWNX-262

        /// <summary>
        /// Raises the <see cref="E:System.Windows.Forms.Control.Enter"/> event.
        /// </summary>
        /// <param name="e">An <see cref="T:System.EventArgs"/> that contains the event data.</param>
        protected override void OnEnter(EventArgs e)
        {
            if (Platform.IsMono)
            {
                if (m_recursionProtection)                 // FWNX-262
                {
                    return;
                }

                m_recursionProtection = true;
            }

            m_bvMatches.SelectedRowHighlighting = XmlBrowseViewBase.SelectionHighlighting.border;
            base.OnEnter(e);
            m_bvMatches.Select();

            m_recursionProtection = false;
        }
 protected override void OnEnter(EventArgs e)
 {
     m_bvMatches.SelectedRowHighlighting = XmlBrowseViewBase.SelectionHighlighting.border;
     base.OnEnter(e);
     m_bvMatches.Select();
 }