private void Update12HrForecast() { string errorMsg = WeatherController.GetErrorMsg(); if (errorMsg != "") { // Add error dialog return; } Set12HrForecast(currDateTime, WeatherController.GetHourlyForecast(), WeatherController.GetHourlyPrecipitation()); }
private void Update12HrForecast(object sender, object args) { string errorMsg = WeatherController.GetErrorMsg(); if (errorMsg != "") { // Add error dialog return; } Set12HrForecast(DateTime.Now, WeatherController.GetHourlyForecast(), WeatherController.GetHourlyPrecipitation()); }