Search Results for

    Show / Hide Table of Contents

    Interface IDirectoryHandler

    An interface designed to interact with directories selected by the user in the local file system of the application

    Inherited Members
    IWindow.Controller
    IWindow.CloseWindow()
    IWindow.ShowDialog()
    IWindow.Show()
    IWindow.SetOwner(IWindow)
    Namespace: LemonEdge.Client.Core.Messages
    Assembly: ClientCore.dll
    Syntax
    public interface IDirectoryHandler : IWindow

    Methods

    GetOpenDirectoryPath(String, Boolean)

    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
    System.String title

    The title name for the reason for the directory selection

    System.Boolean allowMultiple

    Indicates if multiple directories can be selected or not

    Returns
    Type Description
    System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.Collections.Generic.IEnumerable<System.String>>>

    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
    System.String title

    The title name for the reason for saving to a directoy

    System.String defaultDirectoryName

    The default directory for saving to

    Returns
    Type Description
    System.Threading.Tasks.Task<System.ValueTuple<System.Boolean, System.String>>

    A task holding a tuple with if a directory was selected and if so the path to the directory

    Extension Methods

    MiscExtensions.SetIfNotEqual<T, P>(T, Expression<Func<T, P>>, P)
    ReflectionExtensions.ClearEventInvocations(Object, String)
    StringExtensions.ToCSVFormatString(Object, Type)
    SQLExtensions.ToSQLValue(Object, Boolean)
    In This Article
    Back to top © LemonTree Software Ltd. All rights reserved.