예제 #1
0
 private void OnSourceUpdate(Object sender, WeatherEventArgs e)
 {
     _data = e.data;
     if (_data != null)
     {
         SetRetString();
     }
 }
예제 #2
0
 private void OnSourceUpdate(Object sender, WeatherEventArgs e)
 {
     SetRetString();
 }
예제 #3
0
 private void TimerProc(Object state)
 {
     try
     {
         _request.City = _cityid;
         YahooXmlData data = _request.Get();
         WeatherEventArgs weatherevent = new WeatherEventArgs(data);
         if (WeatherArrive != null)
             WeatherArrive(this, weatherevent);
     }
     catch (System.Exception ex)
     {
         LogHelper.Error(ex.Message);
     }
 }