public void RisingTemperature(Kettle k) { if (k.Temperature > 100) { k.LED = Color.Green; } }
public void IncresedLiquidTemperature(WarningLED warning, Kettle k) { if (k.KettelOn) { k.Temperature += 10; } IncreasernTemperature += warning.RisingTemperature; IncreasernTemperature.Invoke(k); }
public void PressedPowerButton(WarningLED warning, Kettle k) { KettlePowerOn += warning.TurnKettleOn; if (!k.KettelOn) { KettlePowerOn.Invoke(k); } else { k.KettelOn = false; k.LED = Color.Off; k.Temperature = 15; } }
public void TurnKettleOn(Kettle k) { k.KettelOn = true; k.LED = Color.Red; }