Esempio n. 1
0
 private void CoreThermo_OnAboveSetPoint(Thermometer thermometer)
 {
     SprinklersOn = true;
     VentsOpen    = true;
     SoundAlarm   = true;
     WatherFlow   = 2.0;
 }
Esempio n. 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;
        }
Esempio n. 3
0
 private void CoreAmbThermo_OnAboveSetPoint(Thermometer thermometer)
 {
     VentsOpen = true;
     Console.WriteLine("OPENING VENTS - IT'S GETTING HOT IN HERE.");
 }
Esempio n. 4
0
 private void CoreThermo_OnBelowSetPoint(Thermometer thermometer)
 {
     SoundAlarm = false;
 }