Esempio n. 1
0
        public void Run(Form parentView, ConfigureGameController parentController)
        {
            _parentController = parentController;

            _view = _formFactory.Create <PerformanceCurveValuesForm>();
            _view.SetController(this);

            ShowView(parentView, _view);
        }
Esempio n. 2
0
        public MenuController(
            IMapperService mapperService,
            MenuForm view,
            UpgradeGameController upgradeGameController,
            ConfigureGameController configureGameController,
            BaseGameEditorController baseGameEditorController,
            LanguageFileEditorController languageFileEditorController,
            SettingsEditorController settingsEditorController,
            RandomService randomService,
            GameRegistryKeyService gameRegistryKeyService)
            : base(mapperService)
        {
            _view = view ?? throw new ArgumentNullException(nameof(view));
            _upgradeGameController        = upgradeGameController ?? throw new ArgumentNullException(nameof(upgradeGameController));
            _configureGameController      = configureGameController ?? throw new ArgumentNullException(nameof(configureGameController));
            _baseGameEditorController     = baseGameEditorController ?? throw new ArgumentNullException(nameof(baseGameEditorController));
            _languageFileEditorController = languageFileEditorController ?? throw new ArgumentNullException(nameof(languageFileEditorController));
            _settingsEditorController     = settingsEditorController ?? throw new ArgumentNullException(nameof(settingsEditorController));
            _randomService          = randomService ?? throw new ArgumentNullException(nameof(randomService));
            _gameRegistryKeyService = gameRegistryKeyService ?? throw new ArgumentNullException(nameof(gameRegistryKeyService));

            _view.SetController(this);
        }