MouseDown() public method

Mouse button has been pressed in the view.
public MouseDown ( ViewBase targetElement, Control c, Point pt, MouseButtons button ) : void
targetElement ViewBase Target element for the mouse message.
c System.Windows.Forms.Control Reference to the source control instance.
pt Point Mouse position relative to control.
button MouseButtons Mouse button pressed down.
return void
Esempio n. 1
0
        /// <summary>
        /// Mouse button has been pressed in the view.
        /// </summary>
        /// <param name="c">Reference to the source control instance.</param>
        /// <param name="pt">Mouse position relative to control.</param>
        /// <param name="button">Mouse button pressed down.</param>
        /// <returns>True if capturing input; otherwise false.</returns>
        public bool MouseDown(Control c, Point pt, MouseButtons button)
        {
            _manager.MouseDown(_targetElement, c, pt, button);

            if (_targetController != null)
            {
                return(_targetController.MouseDown(c, pt, button));
            }
            else
            {
                return(false);
            }
        }
Esempio n. 2
0
        /// <summary>
        /// Mouse button has been pressed in the view.
        /// </summary>
        /// <param name="c">Reference to the source control instance.</param>
        /// <param name="pt">Mouse position relative to control.</param>
        /// <param name="button">Mouse button pressed down.</param>
        /// <returns>True if capturing input; otherwise false.</returns>
        public bool MouseDown(Control c, Point pt, MouseButtons button)
        {
            _manager.MouseDown(_targetElement, c, pt, button);

            return(_targetController != null && _targetController.MouseDown(c, pt, button));
        }