Esempio n. 1
0
 public void HandleTempChangedEvent(object source, TempChangedEventArgs args)
 {
     if (args.Temp < Threshold)
     {
         OnIncreaseTempEvent();
     }
     else
     {
         OnDecreaseTempEvent();
     }
 }
Esempio n. 2
0
 private void HandleTempChangedEvent(object sender, TempChangedEventArgs e)
 {
     CurrentTemperature = e.Temp;
     Regulate();
 }
Esempio n. 3
0
 protected virtual void OnTempChanged(TempChangedEventArgs e)
 {
     TempChangedEvent?.Invoke(this, e);
 }