Ejemplo n.º 1
0
 public AverageObserver(ListBox displayBox, WeatherMonitoringSubject subject) : base(displayBox, subject)
 {
     temptotal        = 0;
     humiditytotal    = 0;
     pressuretotal    = 0;
     numberOfReadings = 0;
 }
Ejemplo n.º 2
0
 public AverageObserver(ListBox displayBox, WeatherMonitoringSubject subject)
     : base(displayBox,subject)
 {
     temptotal = 0;
     humiditytotal = 0;
     pressuretotal = 0;
     numberOfReadings = 0;
 }
Ejemplo n.º 3
0
        public Form1()
        {
            InitializeComponent();

            weatherSubject = new WeatherMonitoringSubject();
            new currentValuesObserver(currListBox,weatherSubject);
            new AverageObserver(averageListBox, weatherSubject);
            new ForecastObserver(forecastListBox, weatherSubject);
        }
Ejemplo n.º 4
0
        public Form1()
        {
            InitializeComponent();

            weatherSubject = new WeatherMonitoringSubject();
            new currentValuesObserver(currListBox, weatherSubject);
            new AverageObserver(averageListBox, weatherSubject);
            new ForecastObserver(forecastListBox, weatherSubject);
        }
Ejemplo n.º 5
0
 public ForecastObserver(ListBox displayBox, WeatherMonitoringSubject subject) : base(displayBox,subject)
 {}
 public currentValuesObserver(ListBox displayBox, WeatherMonitoringSubject subject)
     : base(displayBox,subject)
 {
 }
Ejemplo n.º 7
0
 public ForecastObserver(ListBox displayBox, WeatherMonitoringSubject subject)
     : base(displayBox,subject)
 {
 }
 public currentValuesObserver(ListBox displayBox, WeatherMonitoringSubject subject) : base(displayBox, subject)
 {
 }