/// <summary> /// The behavior is as follow: /// Creates a copy of an EntityType from clipboard format in Entity Model if: /// - The entity-type does not exist in the model. /// - The passed in diagram parameter is null. /// OR /// Create the shape for the entity-type in the Diagram Model if: /// - The diagram is not null AND the entity-type exists in the model AND the corresponding entity-type-shape does not exist in the diagram. /// </summary> /// <param name="diagram"></param> /// <param name="clipboardEntity"></param> /// <param name="modelSpace"></param> internal CopyEntityCommand(Diagram diagram, EntityTypeClipboardFormat clipboardEntity, ModelSpace modelSpace) { _clipboardEntity = clipboardEntity; _modelSpace = modelSpace; _diagram = diagram; }
/// <summary> /// Creates a copy of EntityType from clipboard format /// </summary> /// <param name="clipboardEntity"></param> /// <param name="modelSpace"></param> /// <returns></returns> internal CopyEntityCommand(EntityTypeClipboardFormat clipboardEntity, ModelSpace modelSpace) : this(null, clipboardEntity, modelSpace) { }