public MainService() { LanguageOptions languageOptions = new LanguageOptions(); languageOptions.LoadLanguages(); ILoggerService logger = new LoggerService(); IInputDevice inputDevice = new KeyboardReader(); IOutputDevice appWindow = new Window(languageOptions, logger, inputDevice); int option = appWindow.ChoseLanguage(); languageOptions.LoadOptions(languageOptions.AvailableLanguages.Languages[option]); new Game(languageOptions.ChosenLanguage, appWindow, inputDevice); }
public Window(LanguageOptions languageOptions, ILoggerService loggerService, IInputDevice inputDevice) { _languageOptions = languageOptions; _loggerService = loggerService; _inputDevice = inputDevice; }