Пример #1
0
 public DetailsViewModel(string parameter, Map map)
 {
     this.station = JsonConvert.DeserializeObject<StationFull>(parameter);
     
     this.map = map;
     this.CalculateRoute();
 }
Пример #2
0
 public DetailsViewModel()
 {
     this.station = new StationFull();
 }
Пример #3
0
 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);
     }
 }