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

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

            weatherSubject = new WeatherMonitoringSubject();
            new currentValuesObserver(currListBox, weatherSubject);
            new AverageObserver(averageListBox, weatherSubject);
            new ForecastObserver(forecastListBox, weatherSubject);
        }
예제 #5
0
 public ForecastObserver(ListBox displayBox, WeatherMonitoringSubject subject) : base(displayBox,subject)
 {}
 public currentValuesObserver(ListBox displayBox, WeatherMonitoringSubject subject)
     : base(displayBox,subject)
 {
 }
예제 #7
0
 public ForecastObserver(ListBox displayBox, WeatherMonitoringSubject subject)
     : base(displayBox,subject)
 {
 }
 public currentValuesObserver(ListBox displayBox, WeatherMonitoringSubject subject) : base(displayBox, subject)
 {
 }