示例#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"));
        }
        //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;
 }