Search Results for

    Show / Hide Table of Contents

    Class Save

    This command executes the Save system command

    Saves any changes made against the active displayed layout, or specified layout, and refreshes the layout(s) when the save completes successfuly

    This also prompts the user with any custom save dialogs through IHasSaveProcessingTask implementations and tracks any tasks created during the save process so the user can see their progress
    Inheritance
    System.Object
    BaseHasChildren<EPCommandWithDescriptor>
    EPCommand
    Save
    Implements
    IHasChildren<EPCommandWithDescriptor>
    IHasChildren
    IEPCommand
    System.Windows.Input.ICommand
    System.IDisposable
    Inherited Members
    EPCommand.ActiveDisplayerFromOwner
    EPCommand.LoadChildrenAsync()
    EPCommand.ReloadChildrenOnEachOpen
    EPCommand.HasChildCommands
    EPCommand.SetToggler(IHasToggleStatus)
    EPCommand.Seperator
    EPCommand.Owner
    EPCommand.CanExecuteChanged
    EPCommand.OnCanExecuteChanged()
    EPCommand.OnLayoutsChanged(IModelLayouHost, LayoutChangeEventArgs)
    EPCommand.ICommand.Execute(Object)
    EPCommand.ExternalExecute(Object)
    EPCommand.InternalExecute(Object)
    EPCommand.LockExecution
    EPCommand.ICommand.CanExecute(Object)
    EPCommand.ExternalCanExecute(Object)
    EPCommand.InternalCanExecuteAsync(Object)
    EPCommand.Toggler
    EPCommand.CustomType
    EPCommand.Key
    EPCommand.ModifierKeys
    EPCommand.GetModifierText(IEPCommand)
    EPCommand.RemoveEventHandlersOnDispose()
    EPCommand.Dispose(Boolean)
    EPCommand.Dispose()
    BaseHasChildren<EPCommandWithDescriptor>.Order
    BaseHasChildren<EPCommandWithDescriptor>.Children
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(EPCommandWithDescriptor)
    BaseHasChildren<EPCommandWithDescriptor>.ClearChildren()
    BaseHasChildren<EPCommandWithDescriptor>.Parent
    BaseHasChildren<EPCommandWithDescriptor>.AddChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.DeleteChild(IHasChildren)
    BaseHasChildren<EPCommandWithDescriptor>.IHasChildren.Children
    BaseHasChildren<EPCommandWithDescriptor>.IHasChildren.Parent
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: LemonEdge.Client.Core.Commands
    Assembly: ClientCore.dll
    Syntax
    [CommandDescriptorOptions(Commands.Save, null)]
    public class Save : EPCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IEPCommand, ICommand, IDisposable

    Constructors

    Save(IModelLayoutCommon)

    Creates a new Save command

    Declaration
    public Save(IModelLayoutCommon owner)
    Parameters
    Type Name Description
    IModelLayoutCommon owner

    The owning context for this command

    Properties

    SubscribeToLayoutChange

    Returns true indicating this command should respond to the current selected layout changing

    Declaration
    public override bool SubscribeToLayoutChange { get; }
    Property Value
    Type Description
    System.Boolean
    Overrides
    EPCommand.SubscribeToLayoutChange

    Methods

    InternalCanExecute(Object)

    Returns true if the active, or specified, layout has pending changes and a save is currently being executed

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

    The command parameter

    Returns
    Type Description
    System.Boolean

    True if the active, or specified, layout has pending changes and a save is currently being executed

    Overrides
    EPCommand.InternalCanExecute(Object)

    InternalExecuteAsync(Object)

    Saves any changes made against the active displayed layout, or specified layout, and refreshes the layout(s) when the save completes successfuly

    This also prompts the user with any custom save dialogs through IHasSaveProcessingTask implementations and tracks any tasks created during the save process so the user can see their progress

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

    The command parameter

    Returns
    Type Description
    System.Threading.Tasks.Task

    A task indicating the completion of the operation

    Overrides
    EPCommand.InternalExecuteAsync(Object)

    SaveLayout(IModelLayoutDisplayer, Boolean)

    Saves any changes made against the specified layout, and refreshes the layout(s) when the save completes successfuly

    This also prompts the user with any custom save dialogs through IHasSaveProcessingTask implementations and tracks any tasks created during the save process so the user can see their progress

    Declaration
    public static Task<bool> SaveLayout(IModelLayoutDisplayer layout, bool refreshAfter)
    Parameters
    Type Name Description
    IModelLayoutDisplayer layout

    The specified layout to save the changes for

    System.Boolean refreshAfter

    Indicates that once sucessfully saved the system should refresh the layout (and any others using that context)

    Returns
    Type Description
    System.Threading.Tasks.Task<System.Boolean>

    True if the save was successful

    Implements

    IHasChildren<T>
    IHasChildren
    IEPCommand
    System.Windows.Input.ICommand
    System.IDisposable

    Extension Methods

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