コード例 #1
0
        public MainViewModel(
            ISchedulerProvider schedulerProvider,
            IGeocodingProvider geocodingProvider,
            ILocationManager locationManager,
            ITripLocationViewModel tripLocationViewModel)
        {
            _schedulerProvider = schedulerProvider;
            _geocodingProvider = geocodingProvider;
            _locationManager   = locationManager;

            TripLocationViewModel = tripLocationViewModel;
            MyLocationChanged     = locationManager.LocationChanged;
        }
コード例 #2
0
 public IBaseLocationEditorViewModel GetDestinationLocationEditorViewModel(ITripLocationViewModel tripLocationViewModel)
 {
     return(Locator.ResolveNamed <IBaseLocationEditorViewModel>(ViewModelKeys.DestinationSearch, new NamedParameter(nameof(tripLocationViewModel), tripLocationViewModel)));
 }