System.Timers.Timer.Stop C# (CSharp) Méthode

Stop() public méthode

Stops the timing by setting to .

public Stop ( ) : void
Résultat void
        public void Stop()
        {
            Enabled = false;
        }

Usage Example

Exemple #1
0
        void OnPauseExecute()
        {
            if (RecorderState == RecorderState.Paused)
            {
                _systemTray.HideNotification();

                _recorder.Start();
                _timing?.Start();
                _timer?.Start();

                RecorderState          = RecorderState.Recording;
                Status.LocalizationKey = nameof(LanguageManager.Recording);
            }
            else
            {
                _recorder.Stop();
                _timer?.Stop();
                _timing?.Pause();

                RecorderState          = RecorderState.Paused;
                Status.LocalizationKey = nameof(LanguageManager.Paused);

                _systemTray.ShowTextNotification(Loc.Paused, null);
            }
        }
All Usage Examples Of System.Timers.Timer::Stop