C# Class FileLauncher.FileLocator

Inheritance: IFileLocator
Afficher le fichier Open project: Invenietis/ck-certified

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
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.

Method Details

CreateWildFile() public méthode

public CreateWildFile ( string path, bool fromRegistry ) : IWildFile
path string
fromRegistry bool
Résultat IWildFile

FileLocator() public méthode

public FileLocator ( ) : System
Résultat System

GetLocationCommand() public méthode

public GetLocationCommand ( IWildFile file ) : string
file IWildFile
Résultat string

GetSpecialFolder() public static méthode

Get the SpecialFolder from the given path
public static GetSpecialFolder ( string path ) : Environment.SpecialFolder?
path string
Résultat Environment.SpecialFolder?

Init() public méthode

Load resources
public Init ( ) : void
Résultat void

LoadRegistry() public méthode

Load all the WildFile from the registry into RegistryApps
public LoadRegistry ( ) : void
Résultat void

LoadSpecialFolders() public static méthode

Load the special folders path
public static LoadSpecialFolders ( ) : void
Résultat void

TryLocate() public méthode

public TryLocate ( IWildFile file, Action callback ) : void
file IWildFile
callback Action
Résultat void