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; } }
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; } }