BaconographyW8.PlatformServices.SystemServices.StopTimer C# (CSharp) Method

StopTimer() public method

public StopTimer ( object tickHandle ) : void
tickHandle object
return void
        public void StopTimer(object tickHandle)
        {
            if (tickHandle is DispatcherTimer)
            {
                if(((DispatcherTimer)tickHandle).IsEnabled)
                    ((DispatcherTimer)tickHandle).Stop();
            }
            else if (tickHandle is ThreadPoolTimer)
            {
                ((ThreadPoolTimer)tickHandle).Cancel();
            }
        }