private void OnSourceUpdate(Object sender, WeatherEventArgs e) { _data = e.data; if (_data != null) { SetRetString(); } }
private void OnSourceUpdate(Object sender, WeatherEventArgs e) { SetRetString(); }
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); } }