Exemplo n.º 1
0
        public WeatherStation(RichTextBox  displayBox, WeatherSubject weatherSubject)
        {
            this.displayBox = displayBox;
            this.weatherSubject = weatherSubject;
            currentTemperature = 0;
            currentHumidity = 0;
            currentPressure = 0;

               weatherSubject.AddObserver(this);
        }
Exemplo n.º 2
0
        public WeatherStation(RichTextBox displayBox, WeatherSubject weatherSubject)
        {
            this.displayBox     = displayBox;
            this.weatherSubject = weatherSubject;
            currentTemperature  = 0;
            currentHumidity     = 0;
            currentPressure     = 0;

            weatherSubject.AddObserver(this);
        }
Exemplo n.º 3
0
 public ForecastObserver(RichTextBox displayBox, WeatherSubject weatherSubject)
     : base(displayBox, weatherSubject)
 {
 }
 public TemperatureObserver(RichTextBox displayBox, WeatherSubject weatherSubject)
     : base(displayBox, weatherSubject)
 {
 }
Exemplo n.º 5
0
 public AveragesObserver(RichTextBox displayBox, WeatherSubject weatherSubject)
     : base(displayBox, weatherSubject)
 {
 }
Exemplo n.º 6
0
 public ForecastObserver(RichTextBox displayBox, WeatherSubject weatherSubject)
     : base(displayBox, weatherSubject)
 {
 }
 public TemperatureObserver(RichTextBox displayBox, WeatherSubject weatherSubject)
     : base(displayBox, weatherSubject)
 {
 }
Exemplo n.º 8
0
 public AveragesObserver(RichTextBox displayBox, WeatherSubject weatherSubject)
     : base(displayBox, weatherSubject)
 {
 }