C# 클래스 SIL.FieldWorks.FwCoreDlgs.MoveOrCopyFilesController

Used to move or copy media files when they are linked to a FieldWorks project
파일 보기 프로젝트 열기: sillsdev/FieldWorks 1 사용 예제들

공개 메소드들

메소드 설명
MoveCopyOrLeaveExternalFile ( string sFile, string sRootDirLinkedFiles, IHelpTopicProvider helpTopicProvider, bool isLocal ) : string

Checks to see whether the given file is located in the given root directory (or any subfolder of it), and if not, prompts the user to allow FW to move, copy, or leave the file. If anything unexpected happens, the default is to leave the file where it is.

MoveCopyOrLeaveMediaFiles ( string files, string sRootDirLinkedFiles, IHelpTopicProvider helpTopicProvider, bool isLocal ) : string[]

Checks to see whether the given files are located in the given root directory (or any subfolder of it), and if not, prompts the user to allow FW to move, copy, or leave the files. If anything unexpected happens, the default is to leave the files where they are.

비공개 메소드들

메소드 설명
FileIsInExternalLinksFolder ( string sFile, string sRootDir ) : bool

Determines whether the given file is located in the given root directory (or any subfolder of it).

MoveCopyOrLeaveFiles ( string files, string subFolder, string sRootDirExternalLinks, IHelpTopicProvider helpTopicProvider, bool isLocal ) : string[]
PerformMoveCopyOrLeaveFile ( string sFile, string sRootDir, FileLocationChoice action ) : string

Performs the action the user requested: move, copy, or leave the file.

메소드 상세

MoveCopyOrLeaveExternalFile() 공개 정적인 메소드

Checks to see whether the given file is located in the given root directory (or any subfolder of it), and if not, prompts the user to allow FW to move, copy, or leave the file. If anything unexpected happens, the default is to leave the file where it is.
public static MoveCopyOrLeaveExternalFile ( string sFile, string sRootDirLinkedFiles, IHelpTopicProvider helpTopicProvider, bool isLocal ) : string
sFile string The fully-specified path name of the file.
sRootDirLinkedFiles string The fully-specified path name of the LinkedFiles root directory.
helpTopicProvider IHelpTopicProvider The help topic provider.
isLocal bool True if running on the local server: allows file not to be moved or copied
리턴 string

MoveCopyOrLeaveMediaFiles() 공개 정적인 메소드

Checks to see whether the given files are located in the given root directory (or any subfolder of it), and if not, prompts the user to allow FW to move, copy, or leave the files. If anything unexpected happens, the default is to leave the files where they are.
public static MoveCopyOrLeaveMediaFiles ( string files, string sRootDirLinkedFiles, IHelpTopicProvider helpTopicProvider, bool isLocal ) : string[]
files string The fully-specified path names of the files.
sRootDirLinkedFiles string The fully-specified path name of the LinkedFiles root directory.
helpTopicProvider IHelpTopicProvider The help topic provider.
isLocal bool True if running on the local server: allows file not to be moved or copied
리턴 string[]