Class ExportDefinition
A view command that exports any ISetCopier implemented entities into an xml format describing all their data and related entity structures
This is used for exporting system configuration of top level entities such as IDataset, and any custom entities implementing ISetCopier
Inheritance
Implements
Inherited Members
Namespace: LemonEdge.Client.Core.Commands.ViewCommands
Assembly: ClientCore.dll
Syntax
public class ExportDefinition : ViewCommand, IHasChildren<EPCommandWithDescriptor>, IHasChildren, IDisposable, IEPCommandWithDescriptor, IEPCommand, ICommand, ICommandDescriptor
Constructors
ExportDefinition(IModelLayoutDisplayer, IGridSelector, EntityDescriptor)
Creates a new ExportDefinition view command
Declaration
public ExportDefinition(IModelLayoutDisplayer owner, IGridSelector view, EntityDescriptor desc)
Parameters
Type | Name | Description |
---|---|---|
IModelLayoutDisplayer | owner | The owning context of this command |
IGridSelector | view | The grid holding the selected items to be exported |
EntityDescriptor | desc | The entity descriptor for the type of data being exported into xml |
Fields
XMLFileTypes
A list of the files types that we can export xml definitions into
Declaration
public static (string FileTypeName, string fileType)[] XMLFileTypes
Field Value
Type | Description |
---|---|
System.ValueTuple<System.String, System.String>[] |
Properties
Description
Declaration
public override string Description { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
IconID
Declaration
public override Guid IconID { get; }
Property Value
Type | Description |
---|---|
System.Guid |
Overrides
OverlayIconID
Declaration
public override Guid? OverlayIconID { get; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
Overrides
Title
Declaration
public override string Title { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
ToolTip
Declaration
public override string ToolTip { get; }
Property Value
Type | Description |
---|---|
System.String |
Overrides
Methods
InternalCanExecute(Object)
Returns true if there are selected grid items that implement ISetCopier
Declaration
public override bool InternalCanExecute(object parameter)
Parameters
Type | Name | Description |
---|---|---|
System.Object | parameter | The command parameter |
Returns
Type | Description |
---|---|
System.Boolean | True if there are selected grid items that implement ISetCopier |
Overrides
InternalExecuteAsync(Object)
Prompts the user for a file location to save the export to, then enumerates all the ISetCopier and exports them into a single SetItemInfo which is serialized as xml
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 |