Exemplo n.º 1
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                _temperatureUpdateTimer.Dispose();
                _cyclePreviewTimer.Dispose();
                _pollingTimer.Dispose();
                _temperatureSmoother.Dispose();

                SystemEvents.PowerModeChanged       -= SystemPowerModeChanged;
                SystemEvents.DisplaySettingsChanged -= SystemDisplaySettingsChanged;
                _settingsService.PropertyChanged    -= SettingsServicePropertyChanged;
            }
        }
Exemplo n.º 2
0
        protected virtual void Dispose(bool disposing)
        {
            if (disposing)
            {
                _checkForUpdatesTimer.Dispose();
                _internetSyncTimer.Dispose();
                _disableTemporarilyTimer.Dispose();

                _temperatureService.Updated           -= TemperatureServiceUpdated;
                _temperatureService.Tick              -= TemperatureServiceTick;
                _windowService.FullScreenStateChanged -= WindowServiceFullScreenStateChanged;
                SettingsService.PropertyChanged       -= SettingsServicePropertyChanged;
            }
        }