private void ResetSpecificFilesSelections(IGameFileDataSource[] selectedFiles) { foreach (IGameFileDataSource source in selectedFiles) { if (this.SpecificFiles == null) { this.SpecificFiles = SpecificFilesForm.GetSupportedFiles(this.GameFileDirectory.GetFullPath(), this.GameFile, this.GetSupportedExtensions()); } this.SpecificFiles = this.SpecificFiles.Union <string>(SpecificFilesForm.GetSupportedFiles(this.GameFileDirectory.GetFullPath(), source, this.GetSupportedExtensions())).ToArray <string>(); } }
private string[] GetSupportedFiles(IGameFile gameFile) { return(SpecificFilesForm.GetSupportedFiles(m_appConfig.GameFileDirectory.GetFullPath(), gameFile, SourcePort.GetSupportedExtensions(SelectedSourcePort))); }