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; } }
public void PressedPowerButton(Kettle k, WarningLED warning) { KettlePowerOn += warning.TurnKettleOn; if (!k.KettelOn) { KettlePowerOn.Invoke(k); } else { k.KettelOn = false; k.LED = Color.Off; Liquid = null; } }
public void TurnKettleOn(Kettle k) { k.KettelOn = true; k.LED = Color.Red; }