C# 클래스 ARCed.Helpers.ResourceHelper

Static class that handles finding, organizing, and getting resources automatically from both ther local directory and installed RTP directory if there is one.
파일 보기 프로젝트 열기: borisblizzard/arcreator

공개 메소드들

메소드 설명
DirectorySearch ( string rootDir ) : List

Recursively searches a directory for filenames using the given filters

EnableLocalDirectory ( bool enable ) : void

Enables/disables local directory searching

GetFullPath ( string folder, string name ) : string

Gets the full path to a file of the given type using the simple name of the file

GetTypes ( string folder ) : List

Finds all resources that can be found in the given relative path

Initialize ( ) : void

Initializes the system. Must be called before system can be used.

RefreshLocal ( ) : void

Refreshes the collection of local resources

RefreshRTP ( ) : void

Refreshes the collection of RTP resources

비공개 메소드들

메소드 설명
FileSystemWatcherCreated ( object sender, FileSystemEventArgs e ) : void

Event raised when a file resource file is created

FileSystemWatcherDeleted ( object sender, FileSystemEventArgs e ) : void

Event raised when a file resource file is deleted

FileSystemWatcherRenamed ( object sender, RenamedEventArgs e ) : void

Event raised when a file resource file is renamed

메소드 상세

DirectorySearch() 공개 정적인 메소드

Recursively searches a directory for filenames using the given filters
public static DirectorySearch ( string rootDir ) : List
rootDir string Root directory to begin search
리턴 List

EnableLocalDirectory() 공개 정적인 메소드

Enables/disables local directory searching
public static EnableLocalDirectory ( bool enable ) : void
enable bool Flag to enable or disable local searching
리턴 void

GetFullPath() 공개 정적인 메소드

Gets the full path to a file of the given type using the simple name of the file
public static GetFullPath ( string folder, string name ) : string
folder string Folder name where the file to be found is located.
name string Simple name of the file, without extension
리턴 string

GetTypes() 공개 정적인 메소드

Finds all resources that can be found in the given relative path
public static GetTypes ( string folder ) : List
folder string Directory that will be searched. This path must be relative to /// both the project and the root directory of the RTP
리턴 List

Initialize() 공개 정적인 메소드

Initializes the system. Must be called before system can be used.
public static Initialize ( ) : void
리턴 void

RefreshLocal() 공개 정적인 메소드

Refreshes the collection of local resources
public static RefreshLocal ( ) : void
리턴 void

RefreshRTP() 공개 정적인 메소드

Refreshes the collection of RTP resources
public static RefreshRTP ( ) : void
리턴 void