Ejemplo n.º 1
0
 /// <summary>
 /// Mouse has left the view.
 /// </summary>
 /// <param name="c">Reference to the source control instance.</param>
 /// <param name="next">Reference to view that is next to have the mouse.</param>
 public virtual void MouseLeave(Control c, ViewBase next)
 {
     // Only if mouse is leaving all the children monitored by controller.
     if (_mouseOver && !_menuItem.ContainsRecurse(next))
     {
         _mouseOver = false;
         ViewManager.ClearTarget(this);
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Mouse has left the view.
 /// </summary>
 /// <param name="c">Reference to the source control instance.</param>
 /// <param name="next">Reference to view that is next to have the mouse.</param>
 public virtual void MouseLeave(Control c, ViewBase next)
 {
     // Only if mouse is leaving all the children monitored by controller.
     if (!_target.ContainsRecurse(next))
     {
         _mouseOver = false;
         _mouseDown = false;
         ViewManager.ClearTarget(this);
         UpdateTarget();
     }
 }