Exemplo n.º 1
0
 public void UnRegister(WeatherData weatherData) =>
 weatherData.MeasurementChanges -= OnMeasurementChanges;
 public void Unregister(WeatherData weatherData)
 {
     weatherData.WeatherChanged -= WeatherChanged;
 }
Exemplo n.º 3
0
 public void Register(WeatherData weatherData)
 {
     weatherData.WeatherInfoEventHandler += SendCurrentConditionsReport;
 }
 public void Register(WeatherData weatherData)
 {
     weatherData.WeatherChanged += WeatherChanged;
 }
Exemplo n.º 5
0
 public void Subscribe(WeatherData data)
 {
     data.Change += this.Update;
 }
Exemplo n.º 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;
 }