Example #1
0
 public void UnRegister(WeatherData weatherData) =>
 weatherData.MeasurementChanges -= OnMeasurementChanges;
 public void Unregister(WeatherData weatherData)
 {
     weatherData.WeatherChanged -= WeatherChanged;
 }
Example #3
0
 public void Register(WeatherData weatherData)
 {
     weatherData.WeatherInfoEventHandler += SendCurrentConditionsReport;
 }
 public void Register(WeatherData weatherData)
 {
     weatherData.WeatherChanged += WeatherChanged;
 }
Example #5
0
 public void Subscribe(WeatherData data)
 {
     data.Change += this.Update;
 }
Example #6
0
 public void Unsubscribe(WeatherData data)
 {
     data.Change -= this.Update;
 }
 public void Register(WeatherData weatherData)
 {
     weatherData.WeatherInfoEventHandler += SendStatisticReport;
 }
 public void Register(WeatherData weatherData)
 {
     weatherData.WeatherInfoEventHandler += SendForeCastReport;
 }