public void StatisticReportMsg(object sender, WeatherInfoEventArgs eventArgs)
 {
     Console.WriteLine("Statistic");
 }
示例#2
0
        protected virtual void OnNewWeatherInfo(WeatherInfoEventArgs e)
        {
            EventHandler <WeatherInfoEventArgs> temp = newWeatherInfo;

            temp?.Invoke(this, e);
        }
示例#3
0
 public void CurrentConditionsReportMsg(object sender, WeatherInfoEventArgs eventArgs)
 {
     Console.WriteLine("CurrentConditions");
 }
 public void ForeCastReportMsg(object sender, WeatherInfoEventArgs eventArgs)
 {
     Console.WriteLine("ForeCast");
 }