コード例 #1
0
 public MapLoaderControlViewModel(IMapLoadingService MapLoadingService, MapPresenter MapPresenter, IMappingService MappingService,
                                  ITrackSource TrackSource)
 {
     _mapLoadingService = MapLoadingService;
     _mapPresenter = MapPresenter;
     _mappingService = MappingService;
     _trackSource = TrackSource;
     _load = ReactiveCommand.CreateAsyncTask((_, c) => LoadMap());
 }
コード例 #2
0
        /// <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);
        }