private void HandleTempChangedEvent(object sender, TempChangedEventArgs e) { CurrentTemperature = e.Temp; Regulate(); }
protected virtual void OnTempChangedEvent(TempChangedEventArgs e) { TempChangedEvent?.Invoke(this, e); }