Пример #1
0
        public WeatherStation(RichTextBox  displayBox, WeatherSubject weatherSubject)
        {
            this.displayBox = displayBox;
            this.weatherSubject = weatherSubject;
            currentTemperature = 0;
            currentHumidity = 0;
            currentPressure = 0;

               weatherSubject.AddObserver(this);
        }
Пример #2
0
        public WeatherStation(RichTextBox displayBox, WeatherSubject weatherSubject)
        {
            this.displayBox     = displayBox;
            this.weatherSubject = weatherSubject;
            currentTemperature  = 0;
            currentHumidity     = 0;
            currentPressure     = 0;

            weatherSubject.AddObserver(this);
        }
Пример #3
0
 public ForecastObserver(RichTextBox displayBox, WeatherSubject weatherSubject)
     : base(displayBox, weatherSubject)
 {
 }
 public TemperatureObserver(RichTextBox displayBox, WeatherSubject weatherSubject)
     : base(displayBox, weatherSubject)
 {
 }
Пример #5
0
 public AveragesObserver(RichTextBox displayBox, WeatherSubject weatherSubject)
     : base(displayBox, weatherSubject)
 {
 }
Пример #6
0
 public ForecastObserver(RichTextBox displayBox, WeatherSubject weatherSubject)
     : base(displayBox, weatherSubject)
 {
 }
 public TemperatureObserver(RichTextBox displayBox, WeatherSubject weatherSubject)
     : base(displayBox, weatherSubject)
 {
 }
Пример #8
0
 public AveragesObserver(RichTextBox displayBox, WeatherSubject weatherSubject)
     : base(displayBox, weatherSubject)
 {
 }