void locationEventHandleAction(MvxGeoLocation location) { string lat = location.Coordinates.Latitude.ToString(); string lon = location.Coordinates.Longitude.ToString(); CityObject city = new CityObject(null, null, new CityCoordinate(lat, lon)); WeatherMainModel pageModel = new WeatherMainModel(city); _currentLocationPageView = new WeatherMainPageViewModel(pageModel); }
public WeatherMainPageViewModel(WeatherMainModel model) : base(model) { _pagedViewId = model.CurrentWeather.City.Name; }
public WeatherMainViewModel(WeatherMainModel model) : base() { this.WeatherModel = model; }