C# Class SIL.FieldWorks.TE.TeImportExportExtensions

Exibir arquivo Open project: sillsdev/FieldWorks

Public Methods

Method Description
BooksForProject ( this importSettings ) : List

Gets a list of books that exist for all of the files in this project.

ImportProjectIsAccessible ( this importSettings, StringCollection &thingsNotFound ) : bool

Indicates whether the in-memory import projects/files are currently accessible from this machine.

For Paratext projects, this will only return true if all projects are accessible. For Standard Format, this will return true if any of the files are accessible. We think this might make sense, but we aren't sure why.

Private Methods

Method Description
FilesAreAccessible ( SIL.FieldWorks.FDO.DomainServices.ImportFileSource source, StringCollection &filesNotFound ) : bool

Determine if the file list has any accessible files and get a list of any inaccessible ones.

ParatextProjectsAccessible ( IScrImportSet importSettings, StringCollection &projectsNotFound ) : bool
SFProjectFilesAccessible ( IScrImportSet importSettings, StringCollection &filesNotFound ) : bool

Method Details

BooksForProject() public static method

Gets a list of books that exist for all of the files in this project.
If project is not a supported type
public static BooksForProject ( this importSettings ) : List
importSettings this
return List

ImportProjectIsAccessible() public static method

Indicates whether the in-memory import projects/files are currently accessible from this machine.
For Paratext projects, this will only return true if all projects are accessible. For Standard Format, this will return true if any of the files are accessible. We think this might make sense, but we aren't sure why.
public static ImportProjectIsAccessible ( this importSettings, StringCollection &thingsNotFound ) : bool
importSettings this The import settings.
thingsNotFound System.Collections.Specialized.StringCollection A list of Paratext project IDs or file paths that /// could not be found.
return bool