예제 #1
0
 public EmulationService(AppSettings appSettings, FileIniDataParser iniParser, IProcessHelpers processHelpers, IFileHelpers fileHelpers)
 {
     this.appSettings    = appSettings;
     this.iniParser      = iniParser;
     this.processHelpers = processHelpers;
     this.fileHelpers    = fileHelpers;
 }
 public EmulatorIdentificationService(AppSettings appSettings, IGameLibraryService gameLibraryService, ICoverService coverService, IEmulationService emulationService, IRemoteConfigService remoteConfigService,
                                      IFileHelpers fileHelpers, IProcessHelpers processHelpers) : base(gameLibraryService, coverService, remoteConfigService)
 {
     this.appSettings      = appSettings;
     this.emulationService = emulationService;
     this.fileHelpers      = fileHelpers;
     this.processHelpers   = processHelpers;
 }
예제 #3
0
 public ConfigWizard(AppSettings settings, IConfigurationService configurationService, IEmulationService emulationService, IFileHelpers fileHelpers)
 {
     InitializeComponent();
     this.configurationService = configurationService;
     this.emulationService     = emulationService;
     this.settings             = settings;
     this.fileHelpers          = fileHelpers;
 }
예제 #4
0
 public ConfigurationService(AppSettings appSettings, FileIniDataParser iniParser, IFileHelpers fileHelpers)
 {
     this.appSettings     = appSettings;
     this.iniParser       = iniParser;
     this.fileHelpers     = fileHelpers;
     configsDir           = appSettings.ConfigsDirectory;
     compressedMemoryCard = appSettings.CompressedMemCard;
 }
예제 #5
0
 public VersionManagementService(AppSettings appSettings, FileIniDataParser iniParser, IFileHelpers fileHelpers, IHttpClientFactory httpClientFactory)
 {
     this.appSettings = appSettings;
     this.iniParser   = iniParser;
     this.fileHelpers = fileHelpers;
     settings         = appSettings.VersionManager;
     httpClient       = httpClientFactory.CreateClient();
     Task.Run(UpdateLatestDevVersion);
 }
예제 #6
0
        public RemoteConfigService(AppSettings appSettings, FileIniDataParser iniParser, IConfigurationService configurationService, IEmulationService emulationService, IFileHelpers fileHelpers)
        {
            remoteConfigsPath         = appSettings.RemoteConfigsPath ?? "Remote";
            this.iniParser            = iniParser;
            this.configurationService = configurationService;
            this.emulationService     = emulationService;
            this.fileHelpers          = fileHelpers;
            remoteIndex = new XmlDocument();

            Task.Run(UpdateFromRemote).ContinueWith(task => remoteIndex.Load($"{remoteConfigsPath}\\RemoteIndex.xml"));
        }
예제 #7
0
        //Discuss - can we use calling asembly to run functions in child projects?, that way we can force calling remote functions in the core project. This would controll project flow.
        /// <summary>
        /// AdRotator Initialiser
        /// </summary>
        /// <param name="adSettings">XML string of the AdSettings content</param>
        /// <param name="Culture">Specified culture you want AdRotator initialised for</param>
        public AdRotatorComponent(string Culture, IFileHelpers FileHelper)
        {
            this.IsAdRotatorEnabled      = true;
            this.culture                 = Culture;
            this.fileHelper              = FileHelper;
            this.AdHeight                = 80;
            this.AdWidth                 = 480;
            PlatformSupportedAdProviders = new List <AdType>();
            PlatformAdProviderComponents = new Dictionary <AdType, Type>();

            timerDelegate = new TimerCallback(GetAd);
        }
예제 #8
0
        public MainWindow(AppSettings settings,
                          IGameLibraryService gameLibraryService, IEmulationService emulationService, IIdentificationService identificationService,
                          ICoverService coverService, IVersionManagementService versionManagementService, IFileHelpers fileHelpers)
        {
            InitializeComponent();
            this.settings                 = settings;
            this.gameLibraryService       = gameLibraryService;
            this.emulationService         = emulationService;
            this.identificationService    = identificationService;
            this.coverService             = coverService;
            this.versionManagementService = versionManagementService;
            this.fileHelpers              = fileHelpers;

            PopulateGameModelsFromLibrary();
            userSettingsModel        = new UserSettingsModel(settings.UserSettings);
            gamesList.ItemsSource    = gameModels;
            settingsMenu.DataContext = userSettingsModel;
        }
예제 #9
0
 public DefaultHouseAd(int AdRotatorControlID, IFileHelpers FileHelper)
 {
     this.fileHelper = FileHelper;
     this.adRotatorControlID = AdRotatorControlID;
 }
예제 #10
0
        //Discuss - can we use calling asembly to run functions in child projects?, that way we can force calling remote functions in the core project. This would controll project flow.
        /// <summary>
        /// AdRotator Initialiser
        /// </summary>
        /// <param name="adSettings">XML string of the AdSettings content</param>
        /// <param name="Culture">Specified culture you want AdRotator initialised for</param>
        public AdRotatorComponent(string Culture, IFileHelpers FileHelper)
        {
            this.IsAdRotatorEnabled = true;
            this.culture = Culture;
            this.fileHelper = FileHelper;
            this.AdHeight = 80;
            this.AdWidth = 480;
            PlatformSupportedAdProviders = new List<AdType>();
            PlatformAdProviderComponents = new Dictionary<AdType, Type>();

            timerDelegate = new TimerCallback(GetAd);
        }
예제 #11
0
 public DefaultHouseAd(int AdRotatorControlID, IFileHelpers FileHelper)
 {
     this.fileHelper         = FileHelper;
     this.adRotatorControlID = AdRotatorControlID;
 }
예제 #12
0
 public DuplicateFinder(IFileHelpers fileSystemHelper)
 {
     this._fileSystemHelper = fileSystemHelper;
 }