/// <ToBeCompleted></ToBeCompleted> public void Paste(IModelObject parent) { // Set parent for (int i = copyPasteBuffer.Count - 1; i >= 0; --i) { copyPasteBuffer[i].Parent = parent; } // Execute command ICommand command = new CreateModelObjectsCommand(copyPasteBuffer); Project.ExecuteCommand(command); // Copy for next paste action for (int i = copyPasteBuffer.Count - 1; i >= 0; --i) { copyPasteBuffer[i] = copyPasteBuffer[i].Clone(); } }
/// <ToBeCompleted></ToBeCompleted> public void Paste(IModelObject parent) { // Set parent for (int i = copyPasteBuffer.Count - 1; i >= 0; --i) copyPasteBuffer[i].Parent = parent; // Execute command ICommand command = new CreateModelObjectsCommand(copyPasteBuffer); Project.ExecuteCommand(command); // Copy for next paste action for (int i = copyPasteBuffer.Count - 1; i >= 0; --i) copyPasteBuffer[i] = copyPasteBuffer[i].Clone(); }