예제 #1
0
        public MainController(AppData appData, GameFileService gameFileService, IControllerFactory controllerFactory, ArkhamDbService arkhamDbService, LoadingStatusService loadingStatusService, LoggingService loggingService)
        {
            ViewModel.AppData = appData;

            _gameFileService      = gameFileService;
            _controllerFactory    = controllerFactory;
            _arkhamDbService      = arkhamDbService;
            _loadingStatusService = loadingStatusService;
            _logger = loggingService;

            LoadEncounterSets();

            View.Closed += (s, e) => {
                _logger.LogMessage("Closing main window.");
                ClearPlayerCardsWindows();

                if (_overlayController != null)
                {
                    _overlayController.Close();
                }
            };
        }