Esempio 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);
     }
 }
Esempio 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();
     }
 }
        /// <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 && !_months.ContainsRecurse(next))
            {
                _mouseOver          = false;
                _months.TrackingDay = null;

                if (ViewManager != null)
                {
                    ViewManager.ClearTarget(this);
                }
            }
        }