C# 클래스 FileLauncher.FileLocator

상속: IFileLocator
파일 보기 프로젝트 열기: Invenietis/ck-certified

공개 메소드들

메소드 설명
CreateWildFile ( string path, bool fromRegistry ) : IWildFile
FileLocator ( ) : System
GetLocationCommand ( IWildFile file ) : string
GetSpecialFolder ( string path ) : Environment.SpecialFolder?

Get the SpecialFolder from the given path

Init ( ) : void

Load resources

LoadRegistry ( ) : void

Load all the WildFile from the registry into RegistryApps

LoadSpecialFolders ( ) : void

Load the special folders path

TryLocate ( IWildFile file, Action callback ) : void

비공개 메소드들

메소드 설명
LocateFromRegistry ( WildFile file ) : void
LocateFromSpecialDirectory ( WildFile file ) : void
LocateWebsite ( WildFile wFile ) : void
TryLocatePath ( string path, string folders = null, List exclude = null ) : string

Try to locate a not found file path : First, we look into the current directory and test if the file exist in a direct sub directory. Then if the file can't be found, we search a folder in sub directories listed in folders. If there is no match, we get the parent folder. if there is a match, we get in the sub directory and so on.

메소드 상세

CreateWildFile() 공개 메소드

public CreateWildFile ( string path, bool fromRegistry ) : IWildFile
path string
fromRegistry bool
리턴 IWildFile

FileLocator() 공개 메소드

public FileLocator ( ) : System
리턴 System

GetLocationCommand() 공개 메소드

public GetLocationCommand ( IWildFile file ) : string
file IWildFile
리턴 string

GetSpecialFolder() 공개 정적인 메소드

Get the SpecialFolder from the given path
public static GetSpecialFolder ( string path ) : Environment.SpecialFolder?
path string
리턴 Environment.SpecialFolder?

Init() 공개 메소드

Load resources
public Init ( ) : void
리턴 void

LoadRegistry() 공개 메소드

Load all the WildFile from the registry into RegistryApps
public LoadRegistry ( ) : void
리턴 void

LoadSpecialFolders() 공개 정적인 메소드

Load the special folders path
public static LoadSpecialFolders ( ) : void
리턴 void

TryLocate() 공개 메소드

public TryLocate ( IWildFile file, Action callback ) : void
file IWildFile
callback Action
리턴 void