Smrf.NodeXL.ExcelTemplate.DynamicFilterDialog.RangeTrackBar_SelectedRangeChanged C# (CSharp) Метод

RangeTrackBar_SelectedRangeChanged() защищенный Метод

protected RangeTrackBar_SelectedRangeChanged ( object sender, EventArgs e ) : void
sender object
e EventArgs
Результат void
    RangeTrackBar_SelectedRangeChanged
    (
        object sender,
        EventArgs e
    )
    {
        AssertValid();

        if (!m_bHandleControlEvents)
        {
            return;
        }

        // It's possible to handle the selected range change immediately by
        // updating the appropriate dynamic range column and having the
        // TaskPane read the column and redraw the graph.  This takes a while,
        // however, and it slows down the responsivenees of the RangeTrackBar
        // control the user is changing.
        //
        // Instead, use a timer to delay the handling of the
        // SelectedRangeChanged event, and reset the timer as more such events
        // come in.  This allows the RangeTrackBar control to update more
        // quickly and postpones the redrawing of the graph until the user
        // pauses or stops changing the RangeTrackBar control.

        Debug.Assert(sender is IDynamicFilterRangeTrackBar);

        StartChangeEventDelayTimer( (IDynamicFilterRangeTrackBar)sender );
    }