/// <summary>
        /// Raises the MouseDown event.
        /// </summary>
        /// <param name="e">A MouseEventArgs that contains the event data.</param>
        protected override void OnMouseDown(MouseEventArgs e)
        {
            // Cannot process a message for a disposed control
            if (!IsDisposed)
            {
                // Do we have a manager for processing mouse messages?
                if (ViewManager != null)
                {
                    ViewManager.MouseDown(e, new Point(e.X, e.Y));
                }
            }

            // Do not call base class! Prevent capture of the mouse
        }
Exemple #2
0
        /// <summary>
        /// Raises the MouseDown event.
        /// </summary>
        /// <param name="e">A MouseEventArgs that contains the event data.</param>
        protected override void OnMouseDown(MouseEventArgs e)
        {
            // Cannot process a message for a disposed control
            if (!IsDisposed && !Disposing)
            {
                // Do we have a manager for processing mouse messages?
                if (ViewManager != null)
                {
                    ViewManager.MouseDown(e, new Point(e.X, e.Y));
                }
            }

            // Let base class fire events
            base.OnMouseDown(e);
        }