Пример #1
0
        /// <summary>
        /// Stops the timer and saves the last start time
        /// </summary>
        public static void StopWaiter()
        {
            try
            {
                if (_reminderTimer != null)
                {
                    _reminderTimer.Dispose();
                    _reminderTimer = null;
                }

                // save last run
                Updaters.SetLastRun("ProvidersUpdater", _lastRun);
            }
            catch { }
        }