Beispiel #1
0
 /// <summary>
 /// Mouse has entered the view.
 /// </summary>
 /// <param name="c">Reference to the source control instance.</param>
 public virtual void MouseEnter(Control c)
 {
     if (!_mouseOver && _menuItem.ItemEnabled)
     {
         _mouseOver = true;
         ViewManager.SetTarget(this, true);
     }
 }
Beispiel #2
0
        /// <summary>
        /// Mouse has entered the view.
        /// </summary>
        /// <param name="c">Reference to the source control instance.</param>
        public virtual void MouseEnter(Control c)
        {
            _mouseOver = true;

            if (ViewManager != null)
            {
                ViewManager.SetTarget(this, true);
            }
        }
 /// <summary>
 /// Mouse has entered the view.
 /// </summary>
 /// <param name="c">Reference to the source control instance.</param>
 public virtual void MouseEnter(Control c)
 {
     if (!_mouseOver && _menuColorBlock.ItemEnabled)
     {
         _mouseReallyOver = _target.ClientRectangle.Contains(c.PointToClient(Control.MousePosition));
         _mouseOver       = true;
         ViewManager.SetTarget(this, true);
         UpdateTarget();
     }
 }