public PlayerManager(IDataService dataService, IAccountService accountService, IPlayerService playerService, IDialogService dialogservice, IResourceService resourceService) { this.m_dataService = dataService; this.m_accountService = accountService; this.PlayerService = playerService; this.m_dialogService = dialogservice; this.m_resourceService = resourceService; Messenger.Default.Register<MediaOpenedMessage>(this, message => { this.OnMediaOpened(); }); Messenger.Default.Register<MediaEndedMessage>(this, message => { this.OnMediaEnded(); }); Messenger.Default.Register<MediaNextPressedMessage>(this, message => { if (this.CanExecuteNextTrack()) { this.ExecuteNextTrack(); } }); Messenger.Default.Register<MediaPreviousPressedMessage>(this, message => { if (this.CanExecutePreviousTrack()) { this.ExecutePreviousTrack(); } }); }
public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IPlayerService service) { UserManager = userManager; SignInManager = signInManager; this.playerService = service; }
public PlayerManager(IDataService dataService, IAuthenticationService accountService, IPlayerService playerService, IDialogService dialogservice, IResourceService resourceService) { this.m_dataService = dataService; this.m_accountService = accountService; this.PlayerService = playerService; this.m_dialogService = dialogservice; this.m_resourceService = resourceService; Messenger.Default.Register<MediaStateChangedArgs>(this, args => { switch (args.MediaState) { case MediaState.Opened: OnMediaOpened(); break; case MediaState.Ended: this.OnMediaEnded(); break; case MediaState.NextRequested: ExecuteNextTrack(); break; case MediaState.PreviousRequested: ExecutePreviousTrack(); break; case MediaState.DownloadCompleted: PrepareNextTrack(); break; } }); }
public void SetUp() { _playerService = Substitute.For<IPlayerService>(); _teamService = Substitute.For<ITeamService>(); sut = new PlayerController(_playerService, _teamService); SetUpMappings(); }
public SongsPageViewModel( ILibraryCollectionService libraryCollectionService, ILibraryService libraryService, ISettingsUtility settingsUtility, IPlayerService playerService) { _libraryCollectionService = libraryCollectionService; _settingsUtility = settingsUtility; _playerService = playerService; LibraryService = libraryService; SortItems = Enum.GetValues(typeof (TrackSort)) .Cast<TrackSort>() .Select(sort => new ListBoxItem { Content = sort.GetEnumText(), Tag = sort }) .ToList(); SortChangedCommand = new DelegateCommand<ListBoxItem>(SortChangedExecute); ShuffleAllCommand = new DelegateCommand(ShuffleAllExecute); var defaultSort = _settingsUtility.Read(ApplicationSettingsConstants.SongSort, TrackSort.DateAdded, SettingsStrategy.Roam); DefaultSort = SortItems.IndexOf(SortItems.FirstOrDefault(p => (TrackSort)p.Tag == defaultSort)); ChangeSort(defaultSort); }
public TournamentAdminController(ITournamentService tournamentService, ITennisClubService tennisClubService, IPlayerService playerService, IAddressService addressService) { _tournamentService = tournamentService; _tennisClubService = tennisClubService; _playerService = playerService; _addressService = addressService; }
public TechnologiesController(IBuildingsService buildingsService, ITechnologiesService techService, IPlayerService playerService, ILogicProvider logic) { this.buildingsService = buildingsService; this.techService = techService; this.playerService = playerService; this.logic = logic; }
public AdminController(IGameService gameService, IHoleService holeService, IPlayerService playerService, IRankingService rankingService) { _gameService = gameService; _holeService = holeService; _playerService = playerService; _rankingService = rankingService; }
public GameController(IGameService gameService, IHoleService holeService, IPlayerService playerService, IShotTypeService scoreTypeService) { _gameService = gameService; _holeService = holeService; _playerService = playerService; _scoreTypeService = scoreTypeService; }
public GameController( Game game, ICollisionDetectionService collisionDetectionService, IPlayerService playerService, IEnemyService enemyService, IInputService inputService, IHeadUpDisplayService headUpDisplayService, ITerrainService terrainService, IAudioService audioService) : base(game) { this.game = game; this.collisionDetectionService = collisionDetectionService; this.playerService = playerService; this.enemyService = enemyService; this.inputService = inputService; this.headUpDisplayService = headUpDisplayService; this.terrainService = terrainService; this.audioService = audioService; this.inputService.AnalogPauseChanged += delegate { this.isGamePaused = !this.isGamePaused; }; this.inputService.PauseChanged += delegate { this.isGamePaused = !this.isGamePaused; }; this.fadeEffect = "FadeIn"; }
public PlayerController(IPlayerService playerService, IChallengeService challengeService, ITournamentMatchService tournamentMatchService) { _playerService = playerService; _challengeService = challengeService; _tournamentMatchService = tournamentMatchService; ViewData[Constants.ViewData.PageTitle] = Constants.Pages.PageTitlePlayers; }
public ZoneItemsStore(IZoneService zoneService, IPlayerService playerService, ZoneCompletionUserData zoneUserData) { this.zoneService = zoneService; this.playerService = playerService; this.zoneUserData = zoneUserData; this.Data = new Dictionary<int, ContinentZoneItems>(); }
public GameController(IGameService gameService, IShotService shotService, IHoleService holeService, IPlayerService playerService, IRankingService rankingService) { _gameService = gameService; _shotService = shotService; _holeService = holeService; _playerService = playerService; _rankingService = rankingService; }
public FleetController(IPlayerService playerService, IBuildingsService buildingsService, IFleetService fleetService, ITechnologiesService techService, ILogicProvider logic, IBackgroundWorkerService<IFleetService> worker) { this.playerService = playerService; this.buildingsService = buildingsService; this.fleetService = fleetService; this.techService = techService; this.logic = logic; this.worker = worker; }
public PlayersController(IPlayerService playerService, ITeamService teamService) { Check.Require(playerService != null, "playerService may not be null"); Check.Require(teamService != null, "teamService may not be null"); this.playerService = playerService; this.teamService = teamService; }
public TblDataService(INewsService newsService, IFixtureService fixtureService, ITeamService teamService, ICompetitionService competitionService, IStatsReportingService statsReportingService, IPlayerService playerService) { this.newsService = newsService; this.fixtureService = fixtureService; this.teamService = teamService; this.competitionService = competitionService; this.statsReportingService = statsReportingService; this.playerService = playerService; }
public StatsController(IStatsReportingService statsReportingService, ICompetitionService competitionService, IPlayerService playerService, IFixtureService fixtureService) { this.statsReportingService = statsReportingService; this.competitionService = competitionService; this.playerService = playerService; this.fixtureService = fixtureService; }
public PlayerViewModel(IPlayerService playerService) { if (IsInDesignMode) { Player = new Player(); } else { _playerService = playerService; } }
public PlayerModule(IPlayerService playerService) : base("/players") { //Injection _playerService = playerService; //Routes Get["/"] = parameters => Default(parameters); Get[@"/(?<name>[A-Za-z]+\-[A-Za-z]+)"] = parameters => Player(parameters); }
public CollisionDetectionService( Game game, IPlayerService playerService, IEnemyService enemyService, ITerrainService terrainService) : base(game) { this.playerService = playerService; this.enemyService = enemyService; this.terrainService = terrainService; }
public ProcessMonitor(ISystemService systemService, IPlayerService playerService, EventAggregator eventAggregator) { this.systemService = systemService; this.playerService = playerService; this.IsGw2Running = false; this.DoesGw2HaveFocus = false; this.currentMapId = -1; this.isAdminRightsErrorShown = false; this.eventAggregator = eventAggregator; }
public DownloadService( ILibraryService libraryService, IDispatcherUtility dispatcherUtility, IAppSettingsUtility appSettingsUtility, IPlayerService playerService) { _libraryService = libraryService; _dispatcherUtility = dispatcherUtility; _appSettingsUtility = appSettingsUtility; _playerService = playerService; ActiveDownloads = new ObservableCollection<Track>(); }
public MatchResultService(IMatchResultRepository matchResultRepository, IPlayerService playerService, ICompetitionService competitionService, IFixtureService fixtureService, IStatsReportingService statsReportingService) { this.matchResultRepository = matchResultRepository; this.playerService = playerService; this.competitionService = competitionService; this.fixtureService = fixtureService; this.statsReportingService = statsReportingService; }
public PlayerViewModel(IPlayerService playerService) { _publisher = Publisher.Instance; _publisher.SubscribeToPropertyChanges(this, "PlayingPosition", "Downloaded", "CurrentSong"); _playerService = playerService; PlayCommand = new DelegateCommand(_playerService.Play); StopCommand = new DelegateCommand(_playerService.Stop); PauseCommand = new DelegateCommand(_playerService.Pause); NextCommand = new DelegateCommand(_playerService.NextSong); PreviousCommand = new DelegateCommand(_playerService.PreviousSong); }
public PlayerBarViewModel(IPlayerService playerService) { _playerService = playerService; _playerService.TrackChanged += PlayerServiceOnTrackChanged; _playerService.MediaStateChanged += PlayerServiceOnMediaStateChanged; PlayPauseCommand = new DelegateCommand(() => _playerService.PlayOrPause()); NextCommand = new DelegateCommand(() => _playerService.Next()); PrevCommand = new DelegateCommand(() => _playerService.Previous()); _timer = new DispatcherTimer { Interval = TimeSpan.FromMilliseconds(TimerInterval) }; _timer.Tick += TimerOnTick; }
public PoemService( IPoemRepository poemRepository, IUserProfileService userProfileService, IPlayerService playerService, IEventService eventService, IPoemRequestService poemRequestService, IFacebookProfileProxy facebookProfileProxy, IFacebookRequestService facebookRequestService) { this.poemRepository = poemRepository; this.userProfileService = userProfileService; this.playerService = playerService; this.eventService = eventService; this.poemRequestService = poemRequestService; this.facebookProfileProxy = facebookProfileProxy; this.facebookRequestService = facebookRequestService; }
public ExplorePageViewModel( INavigationService navigationService, IEnumerable<IMetadataProvider> metadataProviders, IPlayerService playerService, IConverter<WebSong, Track> webToTrackConverter) { _navigationService = navigationService; _playerService = playerService; _webToTrackConverter = webToTrackConverter; _metadataProviders = metadataProviders.FilterAndSort<IChartMetadataProvider>(); ArtistClickCommand = new DelegateCommand<ItemClickEventArgs>(ArtistClickExecute); AlbumClickCommand = new DelegateCommand<ItemClickEventArgs>(AlbumClickExecute); if (IsInDesignMode) { OnNavigatedTo(null, NavigationMode.New, new Dictionary<string, object>()); } }
public PlaylistController(IFileDialogService fileDialogService, IShellService shellService, IEnvironmentService environmentService, IMusicFileContext musicFileContext, IPlayerService playerService, IMusicPropertiesService musicPropertiesService, Lazy<PlaylistViewModel> playlistViewModel) { this.fileDialogService = fileDialogService; this.playlistViewModel = playlistViewModel; this.shellService = shellService; this.environmentService = environmentService; this.musicFileContext = musicFileContext; this.playerService = playerService; this.musicPropertiesService = musicPropertiesService; this.playSelectedCommand = new DelegateCommand(PlaySelected, CanPlaySelected); this.removeSelectedCommand = new DelegateCommand(RemoveSelected, CanRemoveSelected); this.showMusicPropertiesCommand = new DelegateCommand(ShowMusicProperties); this.openListCommand = new DelegateCommand(OpenList); this.saveListCommand = new DelegateCommand(SaveList); this.clearListCommand = new DelegateCommand(ClearList); this.openPlaylistFileType = new FileType(Resources.Playlist, SupportedFileTypes.PlaylistFileExtensions); this.savePlaylistFileType = new FileType(Resources.Playlist, SupportedFileTypes.PlaylistFileExtensions.First()); }
public AlbumPageViewModel(ILibraryService libraryService, INavigationService navigationService, IEnumerable<IMetadataProvider> metadataProviders, IConverter<WebAlbum, Album> webAlbumConverter, ISettingsUtility settingsUtility, IPlayerService playerService, ITrackSaveService trackSaveService) { _libraryService = libraryService; _navigationService = navigationService; _webAlbumConverter = webAlbumConverter; _settingsUtility = settingsUtility; _playerService = playerService; _trackSaveService = trackSaveService; _metadataProviders = metadataProviders.FilterAndSort<IExtendedMetadataProvider>(); ViewInCatalogCommand = new DelegateCommand(ViewInCatalogExecute); PlayAllCommand = new DelegateCommand(PlayAllExecute); SaveAllCommand = new DelegateCommand<object>(SaveAllExecute); if (IsInDesignMode) OnNavigatedTo(new AlbumPageParameter("Kauai", "Childish Gambino"), NavigationMode.New, new Dictionary<string, object>()); }
public MatchResultController(IFixtureService fixtureService, ICompetitionService competitionService, IMatchResultService matchResultService, IPlayerService playerService, IMembershipService membershipService, IStatsReportingService statsReportingService) { Check.Require(fixtureService != null, "fixtureService may not be null"); Check.Require(competitionService != null, "competitionService may not be null"); Check.Require(matchResultService != null, "statsService may not be null"); Check.Require(playerService != null, "playerService may not be null"); Check.Require(membershipService != null, "membershipService may not be null"); Check.Require(statsReportingService != null, "statsService may not be null"); this.fixtureService = fixtureService; this.matchResultService = matchResultService; this.playerService = playerService; this.membershipService = membershipService; this.statsReportingService = statsReportingService; }
public MyPlayersController(IPlayerService playerService, IMembershipService membershipService) { this.playerService = playerService; this.membershipService = membershipService; }
public GeneralModule(IPlayerService playerService) { _playerService = playerService; }
/// <summary>Initializes a new instance of the <see cref="HomeController" /> class.</summary> /// <param name="logger">The logger.</param> /// <param name="playerService">The player service.</param> public HomeController(ILogger <HomeController> logger, IPlayerService playerService) { _logger = logger; _playerService = playerService; }
public PlayerController(IPlayerService playerService, ICreatePlayerService createPlayerService, IUpdatePlayerService updatePlayerService) { _playerService = playerService; _createPlayerService = createPlayerService; _updatePlayerService = updatePlayerService; }
public RoundDetailsViewModel(DialogService dialogService, IRoundService rounderService, IPlayerService playerService, ICacheService cacheService) { _dialogService = dialogService; _roundService = rounderService; _playerService = playerService; _cacheService = cacheService; if (IsInDesignMode) { DispatcherHelper.Initialize(); Application.Current.Dispatcher.Invoke(async() => { CurrentDemo = await _cacheService.GetDemoDataFromCache(string.Empty); RoundNumber = 10; await LoadDatas(); }); } }
public EventsController(IEventsService eventsService, IZoneService zoneService, IPlayerService playerService, EventsUserData userData) { logger.Debug("Initializing Event Tracker Controller"); this.eventsService = eventsService; this.zoneService = zoneService; this.playerService = playerService; this.isStopped = false; this.userData = userData; // Initialize the refresh timer this.eventRefreshTimer = new Timer(this.RefreshEvents); this.EventRefreshInterval = 1000; // Initialize the start call count to 0 this.startCallCount = 0; // Set up handling of the event settings UseAdjustedTable property changed so that we can load the correct table when it changes this.UserData.PropertyChanged += UserData_PropertyChanged; // Initialize the WorldEvents collection this.InitializeEvents(); this.InitializeEventZoneNames(); this.InitializeNotifications(); logger.Info("Event Tracker Controller initialized"); }
public PlayerController([NotNull] IPlayerService playerService, [NotNull] IBroadcaster broadcaster) { _playerService = playerService; _broadcaster = broadcaster; }
public MessageController(IHttpContextAccessor httpContextAccessor, IPlayerService playerService) : base(httpContextAccessor, playerService) { }
public TeamService(FMDbContext context, IPlayerService playerService) { this.context = context ?? throw new ArgumentNullException(nameof(context)); this.playerService = playerService; }
public PlayerController(ILeagueService leagueService, IPlayerService playerService) { _leagueService = leagueService; _playerService = playerService; }
public PlayerController(IPlayerService pservice, IHelperService hservice) { _pservice = pservice; _hservice = hservice; }
public PlayersController(IPlayerService playerService) { _playerService = playerService; }
public RegisterHandler(IPlayerService playerService) { _playerService = playerService; }
public RemovePlayerSteps() { _playerService = IocProvider.Get <IPlayerService>(); }
/// <summary> /// Constructs a new Player Marker view model /// </summary> /// <param name="taskViewModel">View model of the marker's corresponding task</param> public PlayerMarkerViewModel(PlayerTaskViewModel taskViewModel, MapUserData userData, int currentContinentId, IZoneService zoneService, IPlayerService playerService) { this.taskViewModel = taskViewModel; this.userData = userData; this.currentContinentId = currentContinentId; this.zoneService = zoneService; this.playerService = playerService; this.userData.HiddenMarkerCategories.CollectionChanged += HiddenMarkerCategories_CollectionChanged; this.taskViewModel.PropertyChanged += TaskViewModel_PropertyChanged; this.taskViewModel.Task.PropertyChanged += Task_PropertyChanged; this.RefreshVisibility(); }
public InactiveGhostState(Ghost context, IPlayerService playerService, IMapService mapService, IPlayerDeathMediator playerDeathMediator) : base(context) { _playerService = playerService; _mapService = mapService; _playerDeathMediator = playerDeathMediator; }
public PlayerViewModel(IPlayerView view, IShellService shellService, IPlayerService playerService) : base(view) { ShellService = shellService; PlayerService = playerService; }
public PlayerDoorUnlock(IPlayerView _playerView, PlayerStateMachine playerStateMachine, IPlayerService _playerService) { playerView = _playerView; playerService = _playerService; stateMachine = playerStateMachine; currentStateType = PlayerStates.UNLOCK_DOOR; }
public PlayersGridController(IPlayerService playerService) { Guard.WhenArgument(playerService, "playerService").IsNull().Throw(); this.playerService = playerService; }
/// <summary> /// Initializes a new instance of the <see cref="SimpleFFTVisualizationViewModel" /> class. /// </summary> /// <param name="logger">The logger.</param> /// <param name="threadManager">The thread manager.</param> /// <param name="playerService">The player service.</param> /// <param name="publicTransport">The public transport.</param> /// <param name="dispatcher">The dispatcher.</param> public SimpleFFTVisualizationViewModel(ILogger logger, IThreadManager threadManager, IPlayerService playerService, IPublicTransport publicTransport, IDispatcher dispatcher) : base(logger, threadManager, playerService, publicTransport, dispatcher) { }
public PlayerController(IPlayerService playerService) { this.playerService = playerService; }
public PlayerController(ILogger <PlayerController> logger, IPlayerService playerService) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _playerService = playerService; }
public TeamController(ITeamService teams, IPlayerService players) { teamService = teams; playerService = players; }
public ValuesController(IPlayerService playerService) { _playerService = playerService; }
public TokenService(IConfiguration configuration, IPlayerService playerSvc) { _configuration = configuration; _playerSvc = playerSvc; }
public VMFacade(IFactionPlayerService factionPlayerService, IFactionService factionService, IPlayerService playerService) { _factionPlayerService = factionPlayerService; _factionService = factionService; _playerService = playerService; _userConverter = new UserConverter(); }
public GameHub(IGameService gameService, IHubContext <GameHub> context, IPlayerService playerService) { _gameService = gameService; _context = context; _playerService = playerService; }
public AccountController(IPlayerService service) { this._service = service; }
public PlayerAttributeController(IPlayerAttributeService playerAttributeService, IPlayerService playerService) { _playerAttributeService = playerAttributeService; _playerService = playerService; }
public MainForm( IServiceProvider serviceProvider // TODO Refactor : injecting service factory is anti pattern , ILogger <MainForm> log , SessionContext sessionContext , IPlayerService playerService , IVaultService vaultService , IStashService stashService , IFontService fontService ) : base(serviceProvider) { this.userContext = sessionContext; this.playerService = playerService; this.vaultService = vaultService; this.stashService = stashService; Log = log; Log.LogInformation("TQVaultAE Initialization !"); InitForm(); #region Apply custom font & scaling this.exitButton.Font = FontService.GetFontLight(12F, UIService.Scale); ScaleControl(this.UIService, this.exitButton); this.characterComboBox.Font = FontService.GetFontLight(13F, UIService.Scale); ScaleControl(this.UIService, this.characterComboBox, false); this.characterLabel.Font = FontService.GetFontLight(11F, UIService.Scale); ScaleControl(this.UIService, this.characterLabel, false); this.itemText.Font = FontService.GetFontLight(11F, FontStyle.Bold, UIService.Scale); this.vaultListComboBox.Font = FontService.GetFontLight(13F, UIService.Scale); ScaleControl(this.UIService, this.vaultListComboBox, false); this.vaultLabel.Font = FontService.GetFontLight(11F, UIService.Scale); ScaleControl(this.UIService, this.vaultLabel, false); this.configureButton.Font = FontService.GetFontLight(12F, UIService.Scale); ScaleControl(this.UIService, this.configureButton); this.customMapText.Font = FontService.GetFont(11.25F, UIService.Scale); ScaleControl(this.UIService, this.customMapText, false); this.showVaulButton.Font = FontService.GetFontLight(12F, UIService.Scale); ScaleControl(this.UIService, this.showVaulButton); this.secondaryVaultListComboBox.Font = FontService.GetFontLight(11F, UIService.Scale); ScaleControl(this.UIService, this.secondaryVaultListComboBox, false); this.aboutButton.Font = FontService.GetFontLight(8.25F, UIService.Scale); ScaleControl(this.UIService, this.aboutButton); this.titleLabel.Font = FontService.GetFontLight(24F, UIService.Scale); ScaleControl(this.UIService, this.titleLabel); this.searchButton.Font = FontService.GetFontLight(12F, UIService.Scale); ScaleControl(this.UIService, this.searchButton); ScaleControl(this.UIService, this.tableLayoutPanelMain); #endregion if (TQDebug.DebugEnabled) { // Write this version into the debug file. Log.LogDebug( $@"Current TQVault Version: {this.currentVersion} Debug Levels {nameof(TQDebug.ArcFileDebugLevel)}: {TQDebug.ArcFileDebugLevel} {nameof(TQDebug.DatabaseDebugLevel)}: {TQDebug.DatabaseDebugLevel} {nameof(TQDebug.ItemAttributesDebugLevel)}: {TQDebug.ItemAttributesDebugLevel} {nameof(TQDebug.ItemDebugLevel)}: {TQDebug.ItemDebugLevel} "); } // Process the mouse scroll wheel to cycle through the vaults. this.MouseWheel += new MouseEventHandler(this.MainFormMouseWheel); }