Class DirectoryLocateService
A service used to locate a directory on the physical file system.
Implements
Inherited Members
Namespace: Gorgon.Editor.Services
Assembly: Gorgon.Editor.API.dll
Syntax
public class DirectoryLocateService : IDirectoryLocateService
Methods
| Edit this page View SourceGetDirectory(DirectoryInfo, string, Action<FolderSelectedArgs>, Action<FolderSelectedArgs>)
Function to show an interface that allows directory selection.
Declaration
public DirectoryInfo GetDirectory(DirectoryInfo initialDir, string caption = null, Action<FolderSelectedArgs> onSelected = null, Action<FolderSelectedArgs> onEntered = null)
Parameters
Type | Name | Description |
---|---|---|
DirectoryInfo | initialDir | The initial directory to use. |
string | caption | [Optional] The caption for the dialog. |
Action<FolderSelectedArgs> | onSelected | [Optional] The method to call when a directory is selected. |
Action<FolderSelectedArgs> | onEntered | [Optional] The method to call when a directory is entered. |
Returns
Type | Description |
---|---|
DirectoryInfo | The selected directory, or null if cancelled. |
Exceptions
Type | Condition |
---|---|
ArgumentNullException | Thrown when the |