public DetailsViewModel(string parameter, Map map) { this.station = JsonConvert.DeserializeObject<StationFull>(parameter); this.map = map; this.CalculateRoute(); }
public DetailsViewModel() { this.station = new StationFull(); }
internal void NavigateToDetails(StationFull selectedStation) { string model = JsonConvert.SerializeObject(selectedStation); Frame rootFrame = Window.Current.Content as Frame; if (rootFrame != null) { rootFrame.Navigate(typeof(DetailsPage), model); } }