public override object Copy(InstanceID sourceInstanceID) { Log.Debug($"MoveItIntegration.Copy({sourceInstanceID.STR()}) called"); switch (sourceInstanceID.Type) { case InstanceType.NetNode: return(CopyNode(sourceInstanceID.NetNode)); case InstanceType.NetSegment: return(CopySegment(sourceInstanceID.NetSegment)); default: Log.Debug("Unsupported integration"); return(null); } }
public override void Paste(InstanceID targetrInstanceID, object record, Dictionary <InstanceID, InstanceID> map) { string strRecord = record == null ? "null" : record.ToString(); string strInstanceID = targetrInstanceID.STR(); Log.Debug($"MoveItIntegration.Paste({strInstanceID}, record:{strRecord}, map) was called"); switch (targetrInstanceID.Type) { case InstanceType.NetNode: PasteNode(targetrInstanceID.NetNode, (NodeData)record, map); break; case InstanceType.NetSegment: PasteSegment(targetrInstanceID.NetSegment, (MoveItSegmentData)record, map); break; default: Log.Debug("Unsupported integration"); break; } }