Пример #1
0
 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();
         }
     });
 }
Пример #2
0
        public AccountController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IPlayerService service)
        {
            UserManager = userManager;
            SignInManager = signInManager;

            this.playerService = service;
        }
Пример #3
0
 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();
 }
Пример #5
0
        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;
 }
Пример #9
0
 public GameController(IGameService gameService, IHoleService holeService, IPlayerService playerService, IShotTypeService scoreTypeService)
 {
     _gameService = gameService;
     _holeService = holeService;
     _playerService = playerService;
     _scoreTypeService = scoreTypeService;
 }
Пример #10
0
        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";
        }
Пример #11
0
        public PlayerController(IPlayerService playerService, IChallengeService challengeService, ITournamentMatchService tournamentMatchService)
        {
            _playerService = playerService;
            _challengeService = challengeService;
            _tournamentMatchService = tournamentMatchService;

            ViewData[Constants.ViewData.PageTitle] = Constants.Pages.PageTitlePlayers;
        }
Пример #12
0
        public ZoneItemsStore(IZoneService zoneService, IPlayerService playerService, ZoneCompletionUserData zoneUserData)
        {
            this.zoneService = zoneService;
            this.playerService = playerService;
            this.zoneUserData = zoneUserData;

            this.Data = new Dictionary<int, ContinentZoneItems>(); 
        }
Пример #13
0
 public GameController(IGameService gameService, IShotService shotService, IHoleService holeService, IPlayerService playerService, IRankingService rankingService)
 {
     _gameService = gameService;
     _shotService = shotService;
     _holeService = holeService;
     _playerService = playerService;
     _rankingService = rankingService;
 }
Пример #14
0
 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;
 }
Пример #18
0
 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;
 }
Пример #21
0
 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;
     
 }
Пример #22
0
 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;
 }
Пример #24
0
        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);
        }
Пример #25
0
        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;
        }
Пример #26
0
 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;
 }
Пример #27
0
        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());
 }
Пример #29
0
        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;
        }
Пример #31
0
 public MyPlayersController(IPlayerService playerService,
                            IMembershipService membershipService)
 {
     this.playerService     = playerService;
     this.membershipService = membershipService;
 }
Пример #32
0
 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;
 }
Пример #34
0
 public PlayerController(IPlayerService playerService, ICreatePlayerService createPlayerService, IUpdatePlayerService updatePlayerService)
 {
     _playerService       = playerService;
     _createPlayerService = createPlayerService;
     _updatePlayerService = updatePlayerService;
 }
Пример #35
0
        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();
                });
            }
        }
Пример #36
0
        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");
        }
Пример #37
0
 public PlayerController([NotNull] IPlayerService playerService,
                         [NotNull] IBroadcaster broadcaster)
 {
     _playerService = playerService;
     _broadcaster   = broadcaster;
 }
Пример #38
0
 public MessageController(IHttpContextAccessor httpContextAccessor, IPlayerService playerService) : base(httpContextAccessor, playerService)
 {
 }
Пример #39
0
 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;
 }
Пример #41
0
 public PlayerController(IPlayerService pservice, IHelperService hservice)
 {
     _pservice = pservice;
     _hservice = hservice;
 }
 public PlayersController(IPlayerService playerService)
 {
     _playerService = playerService;
 }
Пример #43
0
 public RegisterHandler(IPlayerService playerService)
 {
     _playerService = playerService;
 }
 public RemovePlayerSteps()
 {
     _playerService = IocProvider.Get <IPlayerService>();
 }
Пример #45
0
        /// <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();
        }
Пример #46
0
 public InactiveGhostState(Ghost context, IPlayerService playerService, IMapService mapService, IPlayerDeathMediator playerDeathMediator) : base(context)
 {
     _playerService       = playerService;
     _mapService          = mapService;
     _playerDeathMediator = playerDeathMediator;
 }
Пример #47
0
 public PlayerViewModel(IPlayerView view, IShellService shellService, IPlayerService playerService) : base(view)
 {
     ShellService  = shellService;
     PlayerService = playerService;
 }
Пример #48
0
 public PlayerDoorUnlock(IPlayerView _playerView, PlayerStateMachine playerStateMachine, IPlayerService _playerService)
 {
     playerView       = _playerView;
     playerService    = _playerService;
     stateMachine     = playerStateMachine;
     currentStateType = PlayerStates.UNLOCK_DOOR;
 }
Пример #49
0
        public PlayersGridController(IPlayerService playerService)
        {
            Guard.WhenArgument(playerService, "playerService").IsNull().Throw();

            this.playerService = playerService;
        }
Пример #50
0
 /// <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;
 }
Пример #52
0
 public PlayerController(ILogger <PlayerController> logger, IPlayerService playerService)
 {
     _logger        = logger ?? throw new ArgumentNullException(nameof(logger));
     _playerService = playerService;
 }
Пример #53
0
 public TeamController(ITeamService teams, IPlayerService players)
 {
     teamService   = teams;
     playerService = players;
 }
Пример #54
0
 public ValuesController(IPlayerService playerService)
 {
     _playerService = playerService;
 }
Пример #55
0
 public TokenService(IConfiguration configuration, IPlayerService playerSvc)
 {
     _configuration = configuration;
     _playerSvc     = playerSvc;
 }
Пример #56
0
 public VMFacade(IFactionPlayerService factionPlayerService, IFactionService factionService, IPlayerService playerService)
 {
     _factionPlayerService = factionPlayerService;
     _factionService       = factionService;
     _playerService        = playerService;
     _userConverter        = new UserConverter();
 }
Пример #57
0
 public GameHub(IGameService gameService, IHubContext <GameHub> context, IPlayerService playerService)
 {
     _gameService   = gameService;
     _context       = context;
     _playerService = playerService;
 }
Пример #58
0
 public AccountController(IPlayerService service)
 {
     this._service = service;
 }
Пример #59
0
 public PlayerAttributeController(IPlayerAttributeService playerAttributeService, IPlayerService playerService)
 {
     _playerAttributeService = playerAttributeService;
     _playerService          = playerService;
 }
Пример #60
0
        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);
        }