Interface IDirectoryHandler
An interface designed to interact with directories selected by the user in the local file system of the application
Inherited Members
Namespace: LemonEdge.Client.Core.Messages
Assembly: LemonEdge.ClientCore.dll
Syntax
public interface IDirectoryHandler : IWindow
Methods
GetOpenDirectoryPath(string, bool)
Returns a directory for opening selected by the user
Declaration
Task<(bool DirectorySelected, IEnumerable<string> DirectoryPaths)> GetOpenDirectoryPath(string title, bool allowMultiple)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title name for the reason for the directory selection |
bool | allowMultiple | Indicates if multiple directories can be selected or not |
Returns
Type | Description |
---|---|
Task<(bool DirectorySelected, IEnumerable<string> DirectoryPaths)> | A task holding a tuple of if a directory was selected, and if so a list of those selections |
GetSaveDirectoryPath(string, string)
Returns a directory for saving selected by the user
Declaration
Task<(bool DirectorySelected, string DirectoryPath)> GetSaveDirectoryPath(string title, string defaultDirectoryName)
Parameters
Type | Name | Description |
---|---|---|
string | title | The title name for the reason for saving to a directoy |
string | defaultDirectoryName | The default directory for saving to |
Returns
Type | Description |
---|---|
Task<(bool IsValid, string ValidationFailureMessage)> | A task holding a tuple with if a directory was selected and if so the path to the directory |