Example #1
0
 public AverageObserver(ListBox displayBox, WeatherMonitoringSubject subject) : base(displayBox, subject)
 {
     temptotal        = 0;
     humiditytotal    = 0;
     pressuretotal    = 0;
     numberOfReadings = 0;
 }
 public AverageObserver(ListBox displayBox, WeatherMonitoringSubject subject)
     : base(displayBox,subject)
 {
     temptotal = 0;
     humiditytotal = 0;
     pressuretotal = 0;
     numberOfReadings = 0;
 }
Example #3
0
        public Form1()
        {
            InitializeComponent();

            weatherSubject = new WeatherMonitoringSubject();
            new currentValuesObserver(currListBox,weatherSubject);
            new AverageObserver(averageListBox, weatherSubject);
            new ForecastObserver(forecastListBox, weatherSubject);
        }
Example #4
0
        public Form1()
        {
            InitializeComponent();

            weatherSubject = new WeatherMonitoringSubject();
            new currentValuesObserver(currListBox, weatherSubject);
            new AverageObserver(averageListBox, weatherSubject);
            new ForecastObserver(forecastListBox, weatherSubject);
        }
 public ForecastObserver(ListBox displayBox, WeatherMonitoringSubject subject) : base(displayBox,subject)
 {}
 public currentValuesObserver(ListBox displayBox, WeatherMonitoringSubject subject)
     : base(displayBox,subject)
 {
 }
 public ForecastObserver(ListBox displayBox, WeatherMonitoringSubject subject)
     : base(displayBox,subject)
 {
 }
 public currentValuesObserver(ListBox displayBox, WeatherMonitoringSubject subject) : base(displayBox, subject)
 {
 }