private void CoreThermo_OnAboveSetPoint(Thermometer thermometer) { SprinklersOn = true; VentsOpen = true; SoundAlarm = true; WatherFlow = 2.0; }
public PowerStation() { CoreThermo = new Thermometer(24, 70); CoreAmbThermo = new Thermometer(24, 40); ExorstThermo = new Thermometer(24, 100); CoreThermo.OnAboveSetPoint += CoreThermo_OnAboveSetPoint; CoreThermo.OnBelowSetPoint += CoreThermo_OnBelowSetPoint; CoreAmbThermo.OnAboveSetPoint += CoreAmbThermo_OnAboveSetPoint; }
private void CoreAmbThermo_OnAboveSetPoint(Thermometer thermometer) { VentsOpen = true; Console.WriteLine("OPENING VENTS - IT'S GETTING HOT IN HERE."); }
private void CoreThermo_OnBelowSetPoint(Thermometer thermometer) { SoundAlarm = false; }