public void SetLocation(WeatherUnderground.location location) { LocationName = string.Format("{0}, {1}", location.city, location.state); LocationCountry = location.country; LocationQuery = location.query; LocationLat = double.Parse(location.lat); LocationLong = double.Parse(location.lon); LocationTZ_Long = location.tz_unix; }
public LocationQueryViewModel(WeatherUnderground.location location) { SetLocation(location); }