Пример #1
0
 public void Notify()
 {
     if (WeatherChanging != null)
     {
         WeatherChanging.Invoke(this, _state);
     }
 }
Пример #2
0
 //This emits Rain, BlueSky or Cloudy
 protected virtual void OnWeatherChanging(string weatherType)
 {
     WeatherChanging?.Invoke(this, new WeatherChangingArgs()
     {
         type = weatherType
     });
 }