示例#1
0
        //*************************************************************************
        //  Constructor: ToolTipTrackerBase()
        //
        /// <summary>
        /// Initializes a new instance of the <see cref="ToolTipTrackerBase" />
        /// class.
        /// </summary>
        ///
        /// <param name="toolTipTimer">
        /// The timer to use internally.  See the <see cref="IToolTipTimer" />
        /// interface for details.
        /// </param>
        //*************************************************************************

        public ToolTipTrackerBase
        (
            IToolTipTimer toolTipTimer
        )
        {
            m_iShowDelayMs   = DefaultShowDelayMs;
            m_iHideDelayMs   = DefaultHideDelayMs;
            m_iReshowDelayMs = DefaultReshowDelayMs;
            m_iState         = State.NotDoingAnything;
            m_oTrackedObject = null;

            // Save the timer but don't start it yet.

            m_oTimer       = toolTipTimer;
            m_oTimer.Tick += new EventHandler(TimerTick);

            m_bDisposed = false;

            // AssertValid();
        }
    //*************************************************************************
    //  Constructor: ToolTipTrackerBase()
    //
    /// <summary>
    /// Initializes a new instance of the <see cref="ToolTipTrackerBase" />
    /// class.
    /// </summary>
    ///
    /// <param name="toolTipTimer">
    /// The timer to use internally.  See the <see cref="IToolTipTimer" />
    /// interface for details.
    /// </param>
    //*************************************************************************

    public ToolTipTrackerBase
    (
        IToolTipTimer toolTipTimer
    )
    {
        m_iShowDelayMs = DefaultShowDelayMs;
        m_iHideDelayMs = DefaultHideDelayMs;
        m_iReshowDelayMs = DefaultReshowDelayMs;
        m_iState = State.NotDoingAnything;
        m_oTrackedObject = null;

        // Save the timer but don't start it yet.

        m_oTimer = toolTipTimer;
        m_oTimer.Tick += new EventHandler(TimerTick);

        m_bDisposed = false;

        // AssertValid();
    }