Nuaj.Cirrus.Utility.IntegerTrackbarControl.CancelDrag C# (CSharp) Method

CancelDrag() public method

Cancels the current drag
public CancelDrag ( ) : void
return void
        public void CancelDrag()
        {
            if ( !m_bSliderDragging )
                return;	// Not dragging anyway...

            m_bSliderDragging = false;

            // Restore start value
            Value = m_StartValue;

            // Notify of the stop of value change
            if ( SliderDragStop != null )
                SliderDragStop( this, m_StartValue );
        }