Exemplo n.º 1
0
 public void IncresedLiquidTemperature(WarningLED warning, Kettle k)
 {
     if (k.KettelOn)
     {
         k.Temperature += 10;
     }
     IncreasernTemperature += warning.RisingTemperature;
     IncreasernTemperature.Invoke(k);
 }
Exemplo n.º 2
0
 public void IncresedLiquidTemperature(Kettle k, WarningLED warning)
 {
     if (k.KettelOn)
     {
         Temperature += 10;
     }
     IncreasernTemperature += warning.RisingTemperature;
     IncreasernTemperature.Invoke(this);
     if (warning.GreenLED)
     {
         k.LED = Color.Green;
     }
 }