public MapLoaderControlViewModel(IMapLoadingService MapLoadingService, MapPresenter MapPresenter, IMappingService MappingService, ITrackSource TrackSource) { _mapLoadingService = MapLoadingService; _mapPresenter = MapPresenter; _mappingService = MappingService; _trackSource = TrackSource; _load = ReactiveCommand.CreateAsyncTask((_, c) => LoadMap()); }
/// <summary> /// Adds an <see cref="ITrackSource"/> used for providing track /// information. /// </summary> /// <param name="source">The track source to add.</param> /// <returns><code>this</code></returns> public PlayerManagerBuilder AddSource(ITrackSource source) { _sources.Add(source); return(this); }