Search Results for

    Show / Hide Table of Contents

    Class ImportData

    Inheritance
    object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    EPCommandWithDescriptor
    ViewCommand
    TaskBase
    ImportData
    Implements
    IHasChildren<EPCommandWithDescriptor>
    IHasChildren
    IDisposable
    IEPCommandWithDescriptor
    IEPCommand
    ICommand
    ICommandDescriptor
    Inherited Members
    TaskBase.GetUserModifiedParametersFromDefault(IModelLayoutCommon, ServerTaskParameter)
    TaskBase.InternalExecuteUserWarning()
    TaskBase.ProcessExecute(ServerTaskParameter, bool)
    TaskBase.ProcessExecute(ServerTaskParameter, bool, ServerTaskOccurrence?, short?)
    TaskBase.RunOnServer
    TaskBase.IncludeInSimple
    TaskBase.Key
    TaskBase.ModifierKeys
    TaskBase.IsQuickAccessCommand
    TaskBase.ToolTip
    TaskBase.TaskType
    TaskBase.TaskParamType
    TaskBase.InternalExecuteWithChanges
    ViewCommand.Type
    EPCommandWithDescriptor.OverlayIconID
    EPCommandWithDescriptor.Parameter
    EPCommandWithDescriptor.HelpURL
    EPCommand.OnCanExecuteChanged()
    EPCommand.LoadChildrenAsync()
    EPCommand.SetToggler(IHasToggleStatus)
    EPCommand.OnLayoutsChanged(IModelLayoutHost, LayoutChangeEventArgs)
    EPCommand.ExternalExecute(object)
    EPCommand.InternalExecute(object)
    EPCommand.ExternalCanExecute(object)
    EPCommand.InternalCanExecuteAsync(object)
    EPCommand.GetModifierText(IEPCommand)
    EPCommand.RemoveEventHandlersOnDispose()
    EPCommand.Dispose(bool)
    EPCommand.Dispose()
    EPCommand.RootController
    EPCommand.ActiveDisplayerFromOwner
    EPCommand.ReloadChildrenOnEachOpen
    EPCommand.HasChildCommands
    EPCommand.SubscribeToLayoutChange
    EPCommand.From
    EPCommand.LockExecution
    EPCommand.CustomType
    EPCommand.Owner
    EPCommand.Toggler
    EPCommand.CanExecuteChanged
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(EPCommandWithDescriptor, bool)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.ClearChildren()
    BaseHasChildren<EPCommandWithDescriptor>.ClearMyParent()
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.Order
    BaseHasChildren<EPCommandWithDescriptor>.Children
    BaseHasChildren<EPCommandWithDescriptor>.Parent
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.Client.Core.Commands
    Assembly: LemonEdge.ClientEntities.dll
    Syntax
    public class ImportData : TaskBase, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor

    Constructors

    ImportData(IRootController, IModelLayoutCommon, bool, ImportSaveType)

    Declaration
    public ImportData(IRootController root, IModelLayoutCommon owner, bool runOnServer, ImportSaveType saveType)
    Parameters
    Type Name Description
    IRootController root
    IModelLayoutCommon owner
    bool runOnServer
    ImportSaveType saveType

    Properties

    Description

    A user friendly description of this command

    Declaration
    public override string Description { get; }
    Property Value
    Type Description
    string
    Overrides
    TaskBase.Description

    IconID

    The image to use for this command, either a ImageType or ImageID

    Declaration
    public override Guid IconID { get; }
    Property Value
    Type Description
    Guid
    Overrides
    TaskBase.IconID

    Title

    The title of this command

    Declaration
    public override string Title { get; }
    Property Value
    Type Description
    string
    Overrides
    TaskBase.Title

    Methods

    GetParameters()

    A function that returns the default parameters to use when creating this task

    Used in conjunction with GetUserModifiedParametersFromDefault(IModelLayoutCommon, ServerTaskParameter) so hardcoded values can automatically be set, and the user can be prompted for any other required parameter selections if required

    Declaration
    protected override Task<ServerTaskParameter> GetParameters()
    Returns
    Type Description
    Task<ServerTaskParameter>

    A task with the parameters, allowing optional popups to be shown to the user for parameter selection

    Overrides
    TaskBase.GetParameters()
    Remarks

    For instance:

    protected override Task<ServerTaskParameter> GetParameters()
    {
        var ps = new API.Tasks.Parameters.ResetAccountParameter();
        ps.AccountID = accountID;
        ps.AccountID_Label = accountName;
        return GetUserModifiedParametersFromDefault(Owner, ps);
    }

    InternalCanExecute(object)

    Returns if this command can be executed or not from the client application UI

    You must override InternalCanExecute(object?) or InternalCanExecuteAsync(object?) in order to implement if it can be executed

    Declaration
    public override bool InternalCanExecute(object parameter)
    Parameters
    Type Name Description
    object parameter

    The command parameter

    Returns
    Type Description
    bool

    If this command can be executed or not from the client application UI

    Overrides
    EPCommand.InternalCanExecute(object?)

    InternalExecuteAsync(object)

    Gets the parameters for the task (possibly prompting the user for som if GetParameters() override calls GetUserModifiedParametersFromDefault(IModelLayoutCommon, ServerTaskParameter)) and executes the task locally or against a task service depending on the setup

    The system then also tracks the progress of the task in the application and notifies the user when the task is complete

    Declaration
    public override Task InternalExecuteAsync(object parameter)
    Parameters
    Type Name Description
    object parameter

    The command parameter

    Returns
    Type Description
    Task

    A task indicating the completion of the operation

    Overrides
    TaskBase.InternalExecuteAsync(object)

    Implements

    IHasChildren<T>
    IHasChildren
    IDisposable
    IEPCommandWithDescriptor
    IEPCommand
    ICommand
    ICommandDescriptor

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.