Пример #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);
     }
 }
 /// <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;
         _mouseReallyOver = false;
         _mouseDown       = false;
         ViewManager.ClearTarget(this);
         UpdateTarget();
     }
 }
Пример #3
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 && !_months.ContainsRecurse(next))
            {
                _mouseOver          = false;
                _months.TrackingDay = null;

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