C# Класс FileLauncher.FileLocator

Наследование: IFileLocator
Показать файл Открыть проект

Открытые методы

Метод Описание
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