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